rmc-cascader
React MCascader Component
Screenshots
Development
npm install
npm start
Example
http://localhost:8000/examples/
online example: http://react-component.github.io/m-cascader/
install
Usage
see example
API
MCascader props
name | description | type | default |
---|
className | additional css class of root dom node | String | '' |
prefixCls | prefix class | String | 'rmc-cascader' |
pickerPrefixCls | picker prefix class | String | 'rmc-picker' |
data | The data of cascade | array | |
value | selected value | array | |
defaultValue | initial selected value | array | |
onChange | | Function(value) | - |
name | description | type | default |
---|
className | additional css class of modal node | String | '' |
prefixCls | prefix class | String | 'rmc-cascader' |
pickerPrefixCls | picker prefix class | String | 'rmc-picker' |
data | The data of cascade | array | |
value | selected value | array | |
defaultValue | initial selected value | array | |
onPickerChange | | Function(value) | - |
style | additional style | object | {} |
onChange | exec on ok | Function(value) | |
onDismiss | exec on dismiss | function | |
okText | ok button text | String | 'Ok' |
dismissText | dismiss button text | String | 'Dismiss' |
title | Popup title | String | '' |
visible | whether pop picker is visible | Boolean | |
onVisibleChange | called when pop picker visible change | Function | |
Test Case
npm test
npm run chrome-test
Coverage
npm run coverage
open coverage/ dir
License
rmc-cascader is released under the MIT license.