0.4.2 • Published 10 years ago
rmc-select-list v0.4.2
rmc-select-list
React Mobile SelectList Component
Screenshots
Development
npm install
npm startExample
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-testCoverage
npm run coverageopen coverage/ dir
License
rmc-select-list is released under the MIT license.
