-
Notifications
You must be signed in to change notification settings - Fork 19
6r. Cell: DateTime
i_82 edited this page Mar 26, 2018
·
1 revision
DateTime
cell displays a UIDatePicker
called cellDatePicker
inside.
Key | Type | Description | Flags | Default |
---|---|---|---|---|
min | Number | minimum value of timeIntervalSince1970
|
Optional | 0 |
max | Number | maximum value of timeIntervalSince1970
|
Optional | INT_MAX |
minuteInterval | Number | time interval in minute | Optional | 1 |
mode | String | cellDatePicker.datePickerMode |
Optional | datetime |
format | String | time format (ISO8601) | Optional, mode != "interval"
|
nil |
label/icon are not supported.
mode | Description |
---|---|
datetime | UIDatePickerModeDateAndTime |
date | UIDatePickerModeDate |
time | UIDatePickerModeTime |
interval | UIDatePickerModeCountDownTimer |
If format is set, a new NSDateFormatter
instance with dateFormat = format
will be created. And the final value will be the formatted date text converted from cellDatePicker.date
.
value Type |
Condition | Description |
---|---|---|
Number | format == nil && mode != "interval" |
cellDatePicker.date.timeIntervalSince1970 |
Number | format == nil && mode == "interval" |
cellDatePicker.date.countDownDuration |
String | format.length > 0 && mode != "interval |
formatted date text |
About format: Unicode: Date Format Patterns
{
"cell": "DateTime",
"key": "datetime1",
"mode": "datetime"
}