0.2.3 • Published 5 years ago

react-multiselect-box v0.2.3

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

React Multi-Select-Box

Description

A multiselect box component for React. This use react-virtualized and is based on an old jquery plugin.

Demo

Live demo: https://facuesr.github.io/react-multiselect-box/

Installation

npm install react-multiselect-box --save

Then, you can import react-multiselect-box in your app as follows:

import MultiSelectBox from 'react-multiselect-box'
import 'react-multiselect-box/build/css/index.css'

Usage

<MultiSelectBox
  options={[
    { desc: 'Item 1', value: '1' },
    { desc: 'Item 2', value: '2' },
    { desc: 'Item 3', value: '3' }
  ]}
  labelKey="desc"
  valueKey="value"
  onAdd={selectedItem => {

  }}
  onRemove={(removedItem, index) => {

  }}
  onSelectAll={selectedItems => {

  }}
  onRemoveAll={() =>

  }
  valueArray={[2,3]}
/>

Contributors

Thanks Federico Vicente for help with the styles.

License

MIT Licensed.

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago