1.0.3 • Published 3 years ago

@liccampanavd/vd-multiselect v1.0.3

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

vd-multiselect

React MultiSelect Component

Demo

NPM JavaScript Style Guide

Install

npm install --save @liccampanavd/vd-multiselect

Usage

import React, { Component } from 'react'
import MultiSelect from '@liccampanavd/vd-multiselect'

class Example extends Component {
  render() {
    return <MultiSelect />
  }
}

Props

NameTypeDefaultDescription
clearEnabledbooleantrueSpecifies whether to display the Clear button in the widget
disabledbooleanfalseSpecifies whether the widget responds to user interaction
disabledItemsint[][]Specifies the items whose should not be enabled
displayInfobooleantrueSpecifies the selection information text
elementAttrobject{}Specifies the attributes to be attached to the widget's root element
heightstring""Specifies the widget's height
labelKeystring""Specifies the data field whose values should be displayed
loadingbooleanfalseSpecifies whether to show the loading indicator
onValueChangedfuncundefinedA function that is executed when a item is selected or selection is canceled
searchEnabledbooleantrueSpecifies whether to display the Search input in the widget
selectAllEnabledbooleantrueSpecifies whether to display the Select All button in the widget
selectionModestringmultipleSpecifies item selection mode. One of: "single", "multiple"
storearray[]Binds the widget to data
textsobject{search: "Search...",clear: "Clear",selectAll: "Select All",deselectAll: "Deselect All",items: "Item(s)",selectedItems: "Item(s) selected",noDataFound: "No data to display"}Strings that can be changed or localized in the widget
titlestring""The read-only option that holds the text displayed by the widget input element
valuearray[]Specifies the currently selected value(s)
valueKeystring""Specifies which data field provides unique values to the widget's value
widthstring""Specifies the widget's width

License

MIT © liccampanavd

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago