bower install https://github.com/bentorfs/angular-bootstrap-multiselect.git --save-dev
{{embed | prettyprint}}
var app = angular.module('myApp', ['btorfs.multiselect']);
Provide a list of possible options, and the model value will reflect the subset of selected options. The list can contain strings or objects (see below).
options = {{options | prettyprint}}
Model: {{selection1 | prettyprint}}
Make the list searchable by setting showSearch to true.
options = {{options | prettyprint}}
Model: {{selection2 | prettyprint}}
Extra buttons will appear by setting the showSelectAll and showUnselectAll properties
options = {{options | prettyprint}}
Model: {{selection3 | prettyprint}}
Specify the 'selectionLimit' parameter to put an upper limit on the number of elements that can be selected. If the limit is reached, the rest of the options will be disabled.
options = {{options | prettyprint}}
Model: {{selection4 | prettyprint}}
Specify the 'searchLimit' parameter to put an upper limit on the number of search results that will be displayed.
options = {{options2 | prettyprint}}
Model: {{selection5 | prettyprint}}
When using an object list instead of string list as the model value, following parameters are mandatory:
options = {{options2 | prettyprint}}
Model: {{selection6 | prettyprint}}
Some optimizations allow larger datasets than usually possible using angular bindings
options = List of 100 000 objects
Model: {{selection7 | prettyprint}}
options = function() { return $q(function (resolve, reject) { $timeout(function () { resolve([ $scope.searchFilter + '1', $scope.searchFilter + '2' ]) }, 1000); }); }
Model: {{selection7 | prettyprint}}
Provide a custom label to be displayed as placeholder. If you want to replace more strings, check Custom Labels
options = {{options | prettyprint}}
Model: {{selection9 | prettyprint}}
Show tooltips in the option list. Useful in case of long values.
options = {{options | prettyprint}}
Model: {{selection9 | prettyprint}}
Provide custom labels for all strings in the widget
options = {{options | prettyprint}}
labels = {{labels | prettyprint}}
Model: {{selection10 | prettyprint}}