Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 953 Bytes

README.md

File metadata and controls

24 lines (20 loc) · 953 Bytes

react-bootstrap-multiselect

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

Description

  • Support Async initialization and Dynamic update.

Usage

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}/>

Notice

  • You should integrate the jQuery & bootstrap-multiselect framework before you use it.
  • You should set shouldSelectUpdate be true whe performin dynamic update, and *** Parent React Component should set the value passed to shouldSelectUpdate be false in its componentDidUpdate life cycle ****.