1.0.16 • Published 6 years ago
vue-dynamic-select v1.0.16
vue-dynamic-select
A VueJS plugin that provides a searchable and reactive select list component with no dependencies.

Installation
npm install vue-dynamic-select --saveImport
import DynamicSelect from 'vue-dynamic-select'
Vue.use(DynamicSelect)Usage
// Static options source (array)
<dynamic-select
:options="objectArray"
option-value="id"
option-text="name"
placeholder="type to search"
v-model="selectedObject" />
// Dynamic options source (ajax, etc)
<dynamic-select
:options="objectArray"
@search="onSearchEventHandler"
option-value="id"
option-text="name"
placeholder="type to search"
v-model="selectedObject" />NOTE: For more detailed usage see the examples folder.
Properties
Events
| Name | Description |
|---|---|
| search | Triggered whenever search text changes. Value is the current search string. |
| input | Triggered whenever an option is selected. |