2.1.0 • Published 4 months ago

@legion-lib/react-multiselect v2.1.0

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
4 months ago

react multiselect

React 16

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

Install

npm i @9legionlib/react-multiselect

Screenshot

Usage

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

import MultipleSelect from '@9legionlib/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

1.0.7

4 months ago

2.1.0

4 months ago

1.0.6

9 months ago

1.0.5

9 months ago

2.0.1

8 months ago

1.0.4

9 months ago

2.0.0

8 months ago

1.0.3

12 months ago

1.0.2

1 year ago

1.0.1

2 years ago

1.0.0

2 years ago