vue2-selectize
A Selectize wrapper for VueJS 2.
Prerequisites
- jQuery >= 1.7.0
Installation
npm install --save jquery vue2-selectize
Usage
<selectize v-model="selected" :settings="settings"> <!-- settings is optional -->
<option :value="1">One</option>
<option :value="2">Two</option>
</selectize>
import Selectize from 'vue2-selectize'
export default {
components: {
Selectize
},
data() {
return {
settings: {}, // https://github.com/selectize/selectize.js/blob/master/docs/usage.md
selected: 1
}
}
}
// Include your preferred theme in your main SASS file (or your component's <style lang="scss"/> section).
@import "~selectize/dist/css/selectize.bootstrap3.css";