# picker
WARNING
<picker>
is only supported on Android and iOS, and is not supported on web.
A series of stream api. It provides function: pick data, pick date, pick time
# API
# pick
# pick(options, callback[options])
@options
index
, number, default selected rowitems
, array, picker's datatextColor
, color, text color in the picker itemselectionColor
, color, the background color of the selected item in the pickerconfirmTitle
, string, confirm button textcancelTitle
, string, cancel button textconfirmTitleColor
, color, confirm button text colorcancelTitleColor
, color, cancel button text colortitle
, string, title of dialogtitleColor
, color, text color of the dialog titletitleBackgroundColor
, color, background color of the dialog title
@callback, the callback function after executing this action.
ret {Object}
iscallback
's parameter:result
, string, result is one of success,cancel,errordata
, number, the selected index,it exists when result is success.
# pickDate
# pickDate(options, callback[options])
- @options
value
, string, required, date picker selected value by default,date's form is yyyy-MM-ddmax
, string, optional, date’s max valuemin
, string, optional, date's min value
- @callback, the callback function after executing this action.ret {Object} is callback 's parameter:
result
, string, result is one of success/cancel/error.data
, string, the selected value, the form of data is yyyy-MM-dd, it exists when result is success.
# pickTime
# pickTime(options, callback[options])
- @options
value
, string, required,the form of value is HH:mm
- @callback, the callback function after executing this action.ret {Object} is callback 's parameter:
result
, string, result is one of success/cancel/errordata
, string, the selected value, the form of data is HH:mm, it exists when result is success.