Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Options is only binding ID not other attributes #396

Open
KumailHussain opened this issue Jul 7, 2017 · 6 comments
Open

Options is only binding ID not other attributes #396

KumailHussain opened this issue Jul 7, 2017 · 6 comments

Comments

@KumailHussain
Copy link

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
?????

@Nithyananadakamath
Copy link

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

@kim0z
Copy link

kim0z commented Jul 28, 2017

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

@kim0z
Copy link

kim0z commented Jul 28, 2017

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

and it will work

@Nithyananadakamath
Copy link

Thanks @kim0z, it worked.

@jeremypeters
Copy link
Contributor

jeremypeters commented Aug 4, 2017

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.

@sunkarareddy
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants