rn-cascader
v0.1.1
Published
React Native MCascadeSelect Component
Downloads
2
Maintainers
Readme
rn-cascader
React Native MCascadeSelect Component
Screenshot
Development
npm install
online http://react-component.github.io/rn-cascader
Install
API
RNCascader props
| name | description | type | default | |----------|----------------|----------|--------------| |data | input data | array<array{obj}> | [ [{name, value, selected(option)},...], ... ] | |value | default selected values corresponding to the input data above | array | [val1, val2] | |cols | 级联列数 | number | 3 | |onChange | fire when change the selector's item | Function | '' |
rn-cascader/src/Popup props
| name | description | type | default | |----------|----------------|----------|--------------| |data | input data | array<array{obj}> | [ [{name, value, selected(option)},...], ... ] | |value | default selected values corresponding to the input data above | array | [val1, val2] | |cols | 级联列数 | number | 3 | |defaultValue | initial selected value | array | | |onPickerChange | fire when change the selector's item | Function(value) | | |onDismiss |exec on dismiss | Function | | |okText | ok button text | String | 'OK' | |dismissText | dismiss button | String | 'Dismiss' | |visible | whether pop picker is visible | Boolean | false | |onVisibleChange | called when pop picker visible change | Function | | |onChange | exec ok | Function | |
License
rn-cascader is released under the MIT license.