rmc-select-list
v0.4.2
Published
m-select-list ui component for react
Downloads
5
Maintainers
Readme
rmc-select-list
React Mobile SelectList Component
Screenshots
Development
npm install
npm start
Example
http://localhost:8000/examples/
online example: http://react-component.github.io/m-select-list/
install
Usage
see example
API
props
| name | description | type | default | |----------|----------------|----------|--------------| |className | additional css class of root dom node | String | '' | |prefixCls | prefix class | String | 'rmc-select-list' | |showCurrentSelected | whether show selected item | bool | true | |showQuickSearchBar | whether show quick search bar | bool | true | |locale | the locale of area | Object | import from 'rmc-select-list/lib/locale/zh_CN' | |data | The data of list | array | - | |value | current selected value | string | - | |defaultValue | default current selected value | string | - | |onChange | select item | Function(value, item) | - |
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
rmc-select-list is released under the MIT license.