Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 1 KB

README.md

File metadata and controls

28 lines (16 loc) · 1 KB

Angular.js directive for selectize.js. New version based on @kbanman work.

Installation

  • Install from bower

      bower install --save ng-selectize
    
  • Include styles

      <link rel="stylesheet" href="bower_components/selectize/dist/css/selectize.css">
      <link rel="stylesheet" href="bower_components/selectize/dist/css/selectize.bootstrap3.css">
    
  • Include scripts

      <script src="bower_components/selectize/dist/js/standalone/selectize.min.js"></script>
      <script src="bower_components/ng-selectize/ng-selectize.min.js"></script>
    

Usage

Multiple select:

<input type="text" selectize="config" options="suggestions" ng-model="selected" ng-disabled="disabled"/>

Single value:

<select selectize="config" options="suggestions" ng-model="selected" ng-disabled="disabled"></select>

Selectize.js documentation for config.