react-multiselect-revolunet

    1.0.5 • Public • Published

    react-multiselect-revolunet

    npm license github-issues Circle CI build status

    simple search + multi-selection

    nodei.co

    demo

    Install

    npm install --save react-multiselect-revolunet

    Usage

    let props = {
      choices: [
        {
          text: 'Paris',
          value: 'PAR'
        },{
          text: 'New York',
          value: 'NYC'
        },{
          text: 'London',
          value: 'LDN'
        }, {
          text: 'Marrakech',
          value: 'MRK'
        }, {
          text: 'Singapour',
          value: 'SNG'
        }, {
          text: 'Bangkok',
          value: 'BKK'
        }, {
          text: 'Mirleft',
          value: 'MIR'
        }, {
          text: 'Shenzen',
          value: 'SHE'
        }, {
          text: 'Los Angeles',
          value: 'LA'
        }
      ],
      checked: ['LDN', 'PAR'],
      onChange: selection => {
        console.log('selection', selection);
      }
    }
    return <ReactMultiselect { ...props }/>;

    Scripts

    • npm run test : rackt test
    • npm run test-chrome : ./node_modules/.bin/testem -l Chrome
    • npm run start : rackt server
    • npm run readme : node-readme

    Dependencies

    Package Version Dev
    node-readme 0.1.9
    rackt-cli-revolunet ^0.5.10
    react ^0.14
    react-dom ^0.14

    Contributing

    Contributions welcome; Please submit all pull requests the against master branch. If your pull request contains JavaScript patches or features, you should include relevant unit tests. Thanks!

    Author

    Julien Bouquillon julien@bouquillon.com http://github.com/revolunet

    License

    Install

    npm i react-multiselect-revolunet

    DownloadsWeekly Downloads

    2

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • avatar