Reputation: 255
I use plugin Angular JS Dropdown Multiselect
I can to set custom options for dropdown using property extra-settings
:
$scope.categorysettings = {
smartButtonMaxItems: 1,
selectionLimit: 5,
enableSearch: true
};
In this object I set option enableSearch: true
. It means that dropdown multipox has search field.
HTML:
<div ng-dropdown-multiselect="" options="specializationSelect" selected-model="specialization" extra-settings="categorysettings" translation-texts="example5customTexts" checkboxes="true"></div>
So, I get result HTML dropdown without search field however I set custom options.
Upvotes: 1
Views: 446
Reputation: 255
I added, problem is resolved. Instead
extra-settings="categorysettings"
I use object directly in template:
extra-settings="{selectionLimit: 5}"
Upvotes: 1