Yet another multi-select component for React. This component works as the react version of bootstrap-multiselect ^^. Inspired by https://github.com/skratchdot/react-bootstrap-multiselect
- Support Async initialization and Dynamic update.
let ReactSelectView = require('./react-bootstrap-multiselect.js');
<ReactSelectView
name="name it"
selectText="Choose something"
defaultValue={default selected value}
shouldSelectUpdate={true|false}
isMultiple={true}
selectEvent={this.handleChallengeEvent}
data={provided full data}/>
- You should integrate the jQuery & bootstrap-multiselect framework before you use it.
- You should set
shouldSelectUpdate
betrue
whe performin dynamic update, and *** Parent React Component should set the value passed toshouldSelectUpdate
be false in itscomponentDidUpdate
life cycle ****.