PATH:
home
/
letacommog
/
crmleta
/
consumerportal
/
libraries
/
angularuiaddons
/
ui-select-master
/
examples
<!DOCTYPE html> <html lang="en" ng-app="demo"> <head> <meta charset="utf-8"> <title>AngularJS ui-select</title> <!-- IE8 support, see AngularJS Internet Explorer Compatibility http://docs.angularjs.org/guide/ie For Firefox 3.6, you will also need to include jQuery and ECMAScript 5 shim --> <!--[if lt IE 9]> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.js"></script> <script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/2.2.0/es5-shim.js"></script> <script> document.createElement('ui-select'); document.createElement('ui-select-match'); document.createElement('ui-select-choices'); </script> <![endif]--> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.15/angular-sanitize.js"></script> <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.css"> <!-- Select2 theme Bootstrap 3 theme from https://github.com/fk/select2-bootstrap-css --> <link rel="stylesheet" href="http://cdnjs.cloudflare.com/ajax/libs/select2/3.4.5/select2.css"> <link rel="stylesheet" href="http://fk.github.io/select2-bootstrap-css/css/select2-bootstrap.css"> <!-- ui-select files --> <script src="../dist/select.js"></script> <link rel="stylesheet" href="../dist/select.css"> <style> body { padding: 15px; } </style> </head> <body ng-controller="DemoCtrl"> <script src="demo.js"></script> <p>Selected: {{person.selected.name}}</p> <form class="form-horizontal"> <fieldset> <legend>ui-select inside a Bootstrap form</legend> <div class="form-group"> <label class="col-sm-3 control-label">Default</label> <div class="col-sm-6"> <ui-select ng-model="person.selected" theme="select2" class="form-control" title="Choose a person"> <ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match> <ui-select-choices repeat="item in people | filter: $select.search"> <div ng-bind-html="item.name | highlight: $select.search"></div> <small ng-bind-html="item.email | highlight: $select.search"></small> </ui-select-choices> </ui-select> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">Grouped</label> <div class="col-sm-6"> <ui-select ng-model="person.selected" theme="select2" class="form-control" title="Choose a person"> <ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match> <ui-select-choices group-by="'group'" repeat="item in people | filter: $select.search"> <span ng-bind-html="item.name | highlight: $select.search"></span> <small ng-bind-html="item.email | highlight: $select.search"></small> </ui-select-choices> </ui-select> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">With a clear button</label> <div class="col-sm-6"> <div class="input-group select2-bootstrap-append"> <ui-select ng-model="person.selected" theme="select2" class="form-control" title="Choose a person"> <ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match> <ui-select-choices repeat="item in people | filter: $select.search"> <span ng-bind-html="item.name | highlight: $select.search"></span> <small ng-bind-html="item.email | highlight: $select.search"></small> </ui-select-choices> </ui-select> <span class="input-group-btn"> <button ng-click="person.selected = undefined" class="btn btn-default"> <span class="glyphicon glyphicon-trash"></span> </button> </span> </div> </div> </div> <div class="form-group"> <label class="col-sm-3 control-label">Disabled</label> <div class="col-sm-6"> <ui-select ng-model="person.selected" theme="select2" class="form-control" ng-disabled="true" title="Choose a person"> <ui-select-match placeholder="Select or search a person in the list...">{{$select.selected.name}}</ui-select-match> <ui-select-choices repeat="item in people | filter: $select.search"> <div ng-bind-html="item.name | highlight: $select.search"></div> <small ng-bind-html="item.email | highlight: $select.search"></small> </ui-select-choices> </ui-select> </div> </div> </fieldset> </form> </body> </html>
[+]
..
[-] demo-groupby.html
[edit]
[-] demo-bind-to-single-property.html
[edit]
[-] demo.js
[edit]
[-] demo.html
[edit]
[-] demo-bind-to-single-property-async.html
[edit]
[-] selectize-bootstrap3.html
[edit]
[-] demo-disable-search.html
[edit]
[-] demo-event-on-select.html
[edit]
[-] demo-tagging.html
[edit]
[-] bootstrap.html
[edit]
[-] demo-multi-select.html
[edit]
[-] select2-bootstrap3.html
[edit]