javascript - length of dropdown in angularjs-dropdown-multiselect -


hi particular requirement, using angularjs-dropdown-multiselect (i wanted dropdown multiselect selectall , unselectall). facing difficulties in customizing view.

1) if keep "scrollable" false (default), data huge, , data shown in dropdown, dropdown becomes long (shows 50 choices). if keep "scrollable" attribute true, default takes height of dropdown 300px. not dynamic height. if there 1-2 options, dropdown shown 300px. how resolve it? want keep max-height , length should dynamic if lesser that.

2) if list small, scrollbars still visible (it disabled), how remove scrollbars if list small (lesser max-height)?

i worked on simple directive multi-select dropdown avoid dependency on other external libraries simple use. if looking "select all" & "unselect all", dynamic height configurable option (including custom icons..), might want take @ -

https://github.com/rajush/ng-dropdown-multiselect

simple, gets job done.


Comments