ui-select icon indicating copy to clipboard operation
ui-select copied to clipboard

Preselect simple value items appears, but their labels are missing

Open noblecraft opened this issue 11 years ago • 3 comments

Currently uiSelectMultipleDirective, which is used if multiple is set, either uses the ngModel array (simple values), or the $parsed 'data' array for ngModel parsing / formatting (to/from view).

This means the 'data' array needs to be populated.

This is a problem if I have pre-existing (simple) values selected for ngModel. I don't want to populate the entire data array (e.g. if my data array is huge). I can't just populate the data array with the corresponding complex values, since I don't want the user to be able to select duplicates.

I think we need to add an attribute e.g. <ui-select dict='someDictionaryPromise'>, and add another conditional branch to lookup / parse value by dict?

noblecraft avatar Sep 13 '15 00:09 noblecraft

created a PR: https://github.com/angular-ui/ui-select/pull/1193

this is not production ready code, feedback sought about the idea.

thanks

noblecraft avatar Sep 13 '15 04:09 noblecraft

This might be a duplicate of #404

I think comment @sporkd https://github.com/sporkd hit nail on its head there.

noblecraft avatar Sep 13 '15 04:09 noblecraft

+1

cmichal avatar Oct 23 '15 12:10 cmichal