0.0.12 • Published 7 years ago

u-select v0.0.12

Weekly downloads
1
License
ISC
Repository
bitbucket
Last release
7 years ago

u-select

vue.js select plugin

Installing

npm install u-select --save-dev

Usage

import uSelect from 'u-select'

Vue.use(uSelect)

Usage

selectData: [
  {key: 1, value: 'Option 1'},
  {key: 2, value: 'Option 2'},
  {key: 3, value: 'Option 3'},
  {key: 4, value: 'Option 4'},
  {key: 5, value: 'Option 5'},
  {key: 6, value: 'Option 6'}
]

<u-select
  :options="selectData"
  :optionValue="'value'"
  :dropdownClass="['someclass']"
  :itemClass="['someclass']"
  :linkClass="['someclass']"
  :selectedItem="0"
  v-on:selected="selectedValue = $event.key"
></u-select>

Options

Options
optionsarray of all values
popperOptionsoptions for popper.js
selectedItemindex of default selected item
optionValuekey name which will be used to show in input
disabledis input disabled
0.0.12

7 years ago

0.0.11

7 years ago

0.0.10

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.7

7 years ago

0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago