Appearance
@line/bot-sdk • Docs
@line/bot-sdk / DatetimePickerAction
Type Alias: DatetimePickerAction
DatetimePickerAction:
object
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-date Ttime-hour :time-minute or full-date ttime-hour :time-minute (Max: 2100-12-31T23:59; Min: 1900-01-01T00:00) | 2017-06-18T06:152017-06-18t06:15 |
Type declaration
data
data:
string
String returned via webhook in the postback.data
property of the postback event (Max: 300 characters)
initial?
optional
initial:string
Initial value of date or time
max?
optional
max:string
Largest date or time value that can be selected. Must be greater than the min
value.
min?
optional
min:string
Smallest date or time value that can be selected. Must be less than the max
value.
mode
mode:
"date"
|"time"
|"datetime"
type
type:
"datetimepicker"