• Stars
    star
    209
  • Rank 188,325 (Top 4 %)
  • Language Vue
  • License
    MIT License
  • Created almost 4 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A vue keyboard MultiSelect component.

vue-keyboard-multiselect

A project for building a keyboard-supported MultiSelect component based on Vue.js.

Build Setup

# install dependencies
npm i vue-keyboard-multiselect
See https://www.npmjs.com/package/vue-keyboard-multiselect for more information.

How to Use

import KeyboardMultiSelect from 'vue-keyboard-multiselect'
Vue.use(KeyboardMultiSelect)
Then include your list of elements rendered by your data in <KeyboardMultiSelect></KeyboardMultiSelect>.
Now you can multi-select these elements using keyboard shortcut.
Hold 'Command' for multi-select one by one. Hold 'Command' with 'Shift' for multi-select a section in your list of elements.

Props

Name: rawData
Type: Array
Default: []
Description: An array of data source that is used ro render your html fragment in <KeyboardMultiSelect></KeyboardMultiSelect>.

Events

Name: selectChange
Description: Emitted whenever select of your data is changed. Param is changed selected data array of your raw data.
Params:listData

For detailed explanation on how things work, consult the docs for vue-loader.