@9softstudio/react-multiselect

1.2.8 • Public • Published

react multiselect

React 16

Supported languages: en-US (default), zh-TW, zh-CN, zh-Hans

Install

npm i @9softstudio/react-multiselect

Screenshot

Usage

import React, { Component } from 'react'
import ReactDOM from 'react-dom'

import MultipleSelect from '@9softstudio/react-multiselect'

export default class App extends Component {
    constructor(props) {
        super(props);
        this.data = [];

        for(let i = 1; i < 100; i++){
            this.data.push({
                Id: i,
                Name: "Item " + i,
                Checked: true
            });
        }
    }

    render() {
        return (
            <div>
                <h1>Multi Select</h1>
                <div style={{width: "400px"}}>
                    <MultipleSelect
                        id="SelectList"
                        language='en-US'
                        dataSource={this.data}
                        keyField="Id"
                        valueField="Name"
                        statusField="Checked"
                        hasSearchBox={true} />
                </div>
            </div>
        );
    }
}

ReactDOM.render(<App />, document.getElementById("app"));

License

MIT

Package Sidebar

Install

npm i @9softstudio/react-multiselect

Weekly Downloads

18

Version

1.2.8

License

MIT

Unpacked Size

66.3 kB

Total Files

11

Last publish

Collaborators

  • parsonsnguyen
  • phamtung
  • sparta9
  • tuanhn
  • vietquocbui
  • walternexcel