angularjs-dropdown-multiselect icon indicating copy to clipboard operation
angularjs-dropdown-multiselect copied to clipboard

Options is only binding ID not other attributes

Open KumailHussain opened this issue 8 years ago • 6 comments

https://jsfiddle.net/michaeldeongreen/22et6sao/9/ you can see this as an example , issue is option binds only ID not other attributes like label i want also the label with my model <div ng-dropdown-multiselect="" options="example14data" selected-model="example14model" checkboxes="true" extra-settings="example14settings"></div> the example14data will show me only the id not the label why ?????

KumailHussain avatar Jul 07 '17 13:07 KumailHussain

I also have the same issue as @KumailHussain. Adding an option to configure property of selected-model will be helpful.

Nithyananadakamath avatar Jul 19 '17 12:07 Nithyananadakamath

The same issue, any idea how to save all the selected data and not just the id?

kim0z avatar Jul 28 '17 14:07 kim0z

add externalIdProp : '' to extra settings like below: {enableSearch: true, scrollableHeight: '400px', scrollable: true, externalIdProp : ''}

and it will work

kim0z avatar Jul 28 '17 14:07 kim0z

Thanks @kim0z, it worked.

Nithyananadakamath avatar Jul 29 '17 17:07 Nithyananadakamath

Yep, same problem here - setting displayProp has no effect. I've tries a few different releases and they all seem to have the same issue.

jeremypeters avatar Aug 04 '17 15:08 jeremypeters

any idea on how to set selected-model attribute value dynamically during ng-repeat, this really helps. pls suggest.

sunkarareddy avatar Dec 14 '17 22:12 sunkarareddy