1.0.16 • Published 5 years ago

vue-dynamic-select v1.0.16

Weekly downloads
158
License
MIT
Repository
github
Last release
5 years ago

vue-dynamic-select

A VueJS plugin that provides a searchable and reactive select list component with no dependencies.

alt text

View Online Demos Here

Installation

npm install vue-dynamic-select --save

Import

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

NameTypeDefaultDescription
optionsArray Array of objects that will create the select list options
option-valueStringidThe object property used for the value of the select options
option-textStringnameThe object property used for the display text of the select options
v-modelObjectnullObject containing the the selected object
placeholderStringsearchString containing the text to be used as a placeholder

Events

NameDescription
searchTriggered whenever search text changes. Value is the current search string.
inputTriggered whenever an option is selected.
1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago