Appearance
@line/bot-sdk / DatetimePickerAction
Type Alias: DatetimePickerAction
DatetimePickerAction =
object
Defined in: lib/types.ts:2174
When a control associated with this action is tapped, a postback event is returned via webhook with the date and time selected by the user from the date and time selection dialog.
The datetime picker action does not support time zones.
Date and time format
The date and time formats for the initial, max, and min values are shown below. The full-date, time-hour, and time-minute formats follow the RFC3339 protocol.
| Mode | Format | Example |
|---|---|---|
| date | full-date (Max: 2100-12-31; Min: 1900-01-01) | 2017-06-18 |
| time | time-hour:time-minute (Max: 23:59; Min: 00:00) | 00:0006:1523:59 |
| datetime | full-dateTtime-hour:time-minute or full-datettime-hour:time-minute (Max: 2100-12-31T23:59; Min: 1900-01-01T00:00) | 2017-06-18T06:152017-06-18t06:15 |
Properties
data
data:
string
Defined in: lib/types.ts:2180
String returned via webhook in the postback.data property of the postback event (Max: 300 characters)
initial?
optionalinitial:string
Defined in: lib/types.ts:2185
Initial value of date or time
max?
optionalmax:string
Defined in: lib/types.ts:2190
Largest date or time value that can be selected. Must be greater than the min value.
min?
optionalmin:string
Defined in: lib/types.ts:2195
Smallest date or time value that can be selected. Must be less than the max value.
mode
mode:
"date"|"time"|"datetime"
Defined in: lib/types.ts:2181
type
type:
"datetimepicker"
Defined in: lib/types.ts:2175