Skip to content

Dropdown

Compare
Choose a tag to compare
@almino almino released this 09 Jun 23:17
· 6 commits to master since this release

A Dropdown allowing a single selection compatible with v-model.
This Dropdown is searchable.
You can pass options through items prop.

items can be an array of strings. Prefer objects:

{
    // name displayed in dropdown
    "name"      : "Beyoncé Knowles",
    // selected value
    "value"     : "9481" // User ID,
    // name displayed after selection (optional)
    "text"      : "Beyoncé"
    // array of strings to test using user's input as a regexp (optional)
    "search"    : ['Beyonce Knowles'] // no diacritcs version
    // whether field should be displayed as disabled (optional)
    "disabled"  : false
}