Vue component that transforms overwhelming boxes into something fancy, simple and user-friendly. It is similar to Selectize, Chosen, Select2, etc. However it was built using Vue.js only ;) Options name | type | default items | Array | [] An array of the initial available options. multiple | Boolean | false Equivalent to the attribute.
create | Boolean | false
Allows the creation of new items that aren't in the list of options.
placeholder | String | 'Type anything to search'
Placeholder attribute of input.
empty-message | String | 'Select an item'
Placeholder text displayed before an option is selected.
animation | Boolean | true
Show animation when item is selected
name | String | fire-select[]
Name attribute of input
id | String | fire-select
Id attribute of input
-
fsItemAdded When a new item is added.
-
fsItemSelected When a item is selected.
-
fsItemDeselect When a item is deselected.
export default {
events: {
fsItemAdded: function(item) {
// do something
},
...
}
}