angular-dropdown-multiselect
Version:
Angular JS directive for dropdown with multi-select feature.
32 lines (30 loc) • 844 B
JavaScript
(function() {
"use strict";
angular.module('App', ['dropdown-multiselect']).controller('MainCtrl', MainCtrl);
function MainCtrl() {
var vm = this,
options = [{
'Id': 1,
'Name': 'Batman',
'Costume': 'Black'
}, {
'Id': 2,
'Name': 'Superman',
'Costume': 'Red & Blue'
}, {
'Id': 3,
'Name': 'Hulk',
'Costume': 'Green'
}];
vm.config = {
options: options,
trackBy: 'Id',
displayBy: ['Name', 'Costume'],
divider: ':',
icon: 'glyphicon glyphicon-heart',
displayBadge: true,
height: '200px',
filter: true
};
}
}).call(this);