mysociety / jquery-multi-select

Converts <select multiple> elements into dropdown menus with checkboxes
https://www.mysociety.org/
Other
24 stars 18 forks source link

Populating select combobox options dynamically with AngularJS 1.x.xx #36

Open fyoshino opened 1 year ago

fyoshino commented 1 year ago

This control works well with static options defined in HTML.

Is there a way to use this control to populate options from AngularJS using select / ng-options definitions ? If affirmative, are there any examples available ?

fyoshino commented 1 year ago

Even if there is no way to use with AngularJS, is there a way to populate select combobox from JavaScript code ?

dracos commented 1 year ago

You can create a <select> using JavaScript if you wish, using whatever framework you want, then call this code on it to 'activate' it? There has to be an underlying select to be set when the options are chosen.