nativerepo.com

rn-cascader

React Native MCascadeSelect Component

Screenshot

Development

npm install

online http://react-component.github.io/rn-cascader

Install

rn-cascader

API

RNCascader props

namedescriptiontypedefault
datainput dataarray<array{obj}>[ [{name, value, selected(option)},...], ... ]
valuedefault selected values corresponding to the input data abovearray[val1, val2]
cols级联列数number3
onChangefire when change the selector's itemFunction''

rn-cascader/src/Popup props

namedescriptiontypedefault
datainput dataarray<array{obj}>[ [{name, value, selected(option)},...], ... ]
valuedefault selected values corresponding to the input data abovearray[val1, val2]
cols级联列数number3
defaultValueinitial selected valuearray
onPickerChangefire when change the selector's itemFunction(value)
onDismissexec on dismissFunction
okTextok button textString'OK'
dismissTextdismiss buttonString'Dismiss'
visiblewhether pop picker is visibleBooleanfalse
onVisibleChangecalled when pop picker visible changeFunction
onChangeexec okFunction

License

rn-cascader is released under the MIT license.


Comments
Details
Added at: 2017/03/19
Owner: react-component
Category: other
Homepage: https://github.com/react-component/rn-cascader
Downloads last month: 3
Version: 0.1.1
Compatibility
  •  
  •  

Add to your project

npm i --save rn-cascader