1.2.0 • Published 3 years ago

vue-multiselect-component v1.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Multiselect component for Vue 2

A multiselect component with support for Vue 2

Install & basic usage

img.png

$ npm install vue-multiselect-component
<template>
  <VueMultiselectComponent
    v-model="selected"
    :options="options"
  />
</template>

<script>
import VueMultiselectComponent from 'vue-multiselect-component'

export default {
  components: {
    VueMultiselectComponent
  },
  data() {
    return {
      selected: [],
      options: [
        { id: 'ru', label: 'Russia' },
        { id: 'nl', label: 'Netherlands' },
        { id: 'fr', label: 'France' }
      ]
    }
  }
}
</script>

Props

PropsDescriptionRequiredTypeDefault
value (v-model)Selected itemstrueArray-
optionsList of all itemstrueArray-
writableThe ability to write in the input fieldfalseBooleantrue
searchableStandard element search (only for writable = true)falseBooleantrue
placeholderInput placeholderfalseString-
loadingOptions list standby modefalseBooleanfalse
limitLimit the number of visible items when the options list is closedfalseNumber10
label-textThe name of the field in the options array, which should be in the labelfalseStringlabel
placeholder-as-labelMake a placeholder as a label that will be displayed at the top of the input fieldfalseBooleanfalse

*will be complemented

Events

EventDescriptionAttributes
search-changeCalled whenever the search field has changed(search-query)
inputCalled whenever the value changes passing the new value(value-list)
selectedCalled whenever an element is selected(id)
removedCalled whenever an element is removed(id)
openCalled whenever the list is opened-
closeCalled whenever the list is closed-

*will be complemented

License

Copyright (c) 2021-present Anatoliy Vasilyev.

Released under the MIT License.

1.2.0

3 years ago

1.1.6

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago