React component used for selecting multiple values or single statess from several options
npm i --save react-selectlist
import ReactSelectList from "react-selectlist";
<ReactSelectList
data={data}
disabled={[true, true]}
value={selected}
multiple={multiple}
orientation={orientation}
onChange={this._onSelectChange}
/>;
data:[
{ value: 1, label: 'Nuggets'},
{ value: 2, label: 'Jazz'},
{ value: 3, label: 'Warriors' },
{ value: 4, label: 'Lakers' },
]
or
data:[0,1,2,3,4]
array: [1,2,3]
string: default value & label
type boolean: true|false
string :horizontal|vertical
call back function
The select value return in string array
return (["0","1"],id)
MIT