-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
35 lines (33 loc) · 1.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<html ng-app="demo">
<head>
<title></title>
</head>
<body>
<div style="display:block" ng-controller="MainController">
<multiselect options="demoOptions">
</multiselect>
Value:{{demoOptions.selectedItems}}
</div>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script>
<script src="ng-multiselect.js"></script>
<script>
(function(){
var app = angular.module('demo', ['ng-multiselect']);
app.controller('MainController', ['$scope', function($scope){
console.log('Controller loaded...');
$scope.demoOptions = {
// title: '',
// helpMessage: ' Click items to transfer them between fields.',
disableFilter : true,
// filterPlaceHolder: 'Start typing to filter the lists below.',
labelAll: 'All Items',
labelSelected: 'Selected Items',
orderProperty: 'name',
items: [{'id': '50', 'name': 'Germany', extra:'abc'}, {'id': '45', 'name': 'Spain'}, {'id': '66', 'name': 'Italy'}, {'id': '30', 'name' : 'Brazil' }, {'id': '41', 'name': 'France' }, {'id': '34', 'name': 'Argentina'}],
selectedItems: []
};
}]);
})();
</script>
</body>
</html>