Giter VIP home page Giter VIP logo

Comments (8)

danielcardoso5 avatar danielcardoso5 commented on July 22, 2024 10

+1 Really missing this feature. There's many use cases when you'd like to store the whole object and not a single property value. Like @PhiLhoSoft it should be added as an option.

from angular-selectize.

wallawe avatar wallawe commented on July 22, 2024 3

+1

from angular-selectize.

PhiLhoSoft avatar PhiLhoSoft commented on July 22, 2024 1

Actually, I think ngModel should hold the options objects, as it does in the AngularJS select directive (and in angular-chosen-localytics). Currently, it only holds the selected values, so when the options are objects, we have to find back which ones are selected.

Problem: that would be a breaking change. So this capability would have to be activated by an option.

from angular-selectize.

delcasda avatar delcasda commented on July 22, 2024 1

any news on this?

from angular-selectize.

miketeix avatar miketeix commented on July 22, 2024

+1 Need ability to have model set as multi-keyed object

from angular-selectize.

AntonRand avatar AntonRand commented on July 22, 2024

Is there a workaround to this, very similar if not the same as what I'm asking here :

http://stackoverflow.com/questions/32911621/angular-selectize-bind-to-model-not-value

from angular-selectize.

PhiLhoSoft avatar PhiLhoSoft commented on July 22, 2024

The workaround is as I wrote: you have a list of options, ngModel provides the value(s) (key(s)), you search the item in the list with this key (these keys). It is quite trivial with Lodash or similar, and generally fast enough.

from angular-selectize.

AntonRand avatar AntonRand commented on July 22, 2024

Thank you Philippe. I was originally using the ui-select plugin which did this out of the box without needing a workaround.

It's too slow when I have ~1500 options, not a problem with angular-selectize though.

from angular-selectize.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.