pinguo-pengxiaolong / react-bootstrap-multiselect2

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 ****.

About

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


Languages

Language:JavaScript 100.0%