0.4.0 • Published 7 years ago

react-dual-list-box v0.4.0

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

React Dual List Box

NPM

A dual list box component for React, with search feature.

Installation

# Yarn
$ yarn add react-dual-list-box

# NPM
$ npm install react-dual-list-box --save

Usage

There is a basic example on examples folder, which is also live here.

PropTypeDefault Value
optionsarrayOf(shape({ value: string or number, label: node }))
initialValuearrayOf(string or number)
valueTypestring"string"
onChangefunc-
disabledboolfalse
leftButtonContentnode (number, string, html element)>
rightButtonContentnode (number, string, html element)<
textsobject{{ item: 'Item', items: 'Items', noItem: 'No Items', search: 'Search...' }}

Since HTML select tag auto formats its option values as string, if your value prop is a number (eg: id), you need to pass valueType="number" prop to DualListBox component.

Contribution

This project has initialized from react-component-starter, which contains detailed documentation about installation, development and build flow of the package.

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.5

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago