Socket
Book a DemoInstallSign in
Socket

vue-dynamic-multiselect

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-dynamic-multiselect

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

1.0.7
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

vue-dynamic-multiselect

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

alt text

View Online Demos

Installation

npm install vue-dynamic-multiselect --save

Import

import DynamicMultiSelect from 'vue-dynamic-multiselect'

Vue.use(DynamicMultiSelect)

Usage

// Static options source (array)
<dynamic-multi-select 
    :options="objectArray"
    option-value="id"
    option-text="name"
    placeholder="type to search"
    v-model="selectedObjects" />

// Dynamic options source (ajax, etc)
<dynamic-multi-select 
    :options="objectArray"
    @search="onSearchEventHandler"
    option-value="id"
    option-text="name"
    placeholder="type to search"
    v-model="selectedObjects" />

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-modelArray[ ]Array used for fetching / storing the selected objects
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 the selected options change.

Keywords

vue

FAQs

Package last updated on 29 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.