vue-selectize
A Vue.js directive for selectize.js.
Requirements
- Vue.js ^
0.12.0
- Selectize.js (and its dependencies)
Installation
$ npm install vue-selectize --save
Usage
When using webpack or browserify:
var Vue = ;var selectize = ; Vue;
Or when including directly in your HTML:
Vue;
After installing the plugin with Vue.use
you can use the v-selectize
directive.
<!-- or --> Static item 1 Static item 2 Static item 3 <!-- or -->
selected
is the selected valueitems
is an array of the initial available optionscustomSettings
is an object with settings that will be passed to selectize