multreeselect

2.0.2 • Public • Published

This project is created to use Dropdown Tree select in React. Powered by nitpedia (www.nitpedia.in)

Guide

  1. How to Use ? Here we go:
  2. let sampleOptions=[ { title: 'region 1', value: 1, key: 1, children: [ { title: 'store 1', value: 212, key: 212, }, ], }, { title: 'region 2', value: 2, key: 2, children: [ { title: 'store 2', value: 215, key: 215, }, { title: 'store 3', value: 216, key: 216, }, { title: 'store 4', value: 217, key: 217, }, ], }, ]
  3.  <MultreeSelect
        options={sampleOptions}
         onChange={this.getVal}
         getChildValue={true}
         placeholder={'select'}
         width={'25%'}
         showSearch={true}
         size={'small'}
         />
    
  4. size accepts either 'small' i.e 30px or 'large' i.e 36px.
  5. If getChildValue = {false} then value of parent and child nodes both will be returned.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.0.25latest

Version History

VersionDownloads (Last 7 Days)Published
2.0.25
1.0.00
0.1.90
0.1.80
0.1.70
0.1.60
0.1.50
0.1.40
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i multreeselect

Weekly Downloads

5

Version

2.0.2

License

MIT

Unpacked Size

707 kB

Total Files

4

Last publish

Collaborators

  • nitinbrains