View Source GoogleApi.Chat.V1.Model.GoogleAppsCardV1DateTimePicker (google_api_chat v0.34.0)
Lets users input a date, a time, or both a date and a time. For an example in Google Chat apps, see Date time picker. Users can input text or use the picker to select dates and times. If users input an invalid date or time, the picker shows an error that prompts users to input the information correctly. Google Workspace Add-ons and Chat apps:
Attributes
-
label
(type:String.t
, default:nil
) - The text that prompts users to input a date, a time, or a date and time. For example, if users are scheduling an appointment, use a label such asAppointment date
orAppointment date and time
. -
name
(type:String.t
, default:nil
) - The name by which theDateTimePicker
is identified in a form input event. For details about working with form inputs, see Receive form data. -
onChangeAction
(type:GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t
, default:nil
) - Triggered when the user clicks Save or Clear from theDateTimePicker
interface. -
timezoneOffsetDate
(type:integer()
, default:nil
) - The number representing the time zone offset from UTC, in minutes. If set, thevalue_ms_epoch
is displayed in the specified time zone. If unset, the value defaults to the user's time zone setting. -
type
(type:String.t
, default:nil
) - Whether the widget supports inputting a date, a time, or the date and time. -
valueMsEpoch
(type:String.t
, default:nil
) - The default value displayed in the widget, in milliseconds since Unix epoch time. Specify the value based on the type of picker (DateTimePickerType
):DATE_AND_TIME
: a calendar date and time in UTC. For example, to represent January 1, 2023 at 12:00 PM UTC, use1672574400000
.DATE_ONLY
: a calendar date at 00:00:00 UTC. For example, to represent January 1, 2023, use1672531200000
.TIME_ONLY
: a time in UTC. For example, to represent 12:00 PM, use43200000
(or `12 60 60 1000`).
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
Functions
Unwrap a decoded JSON object into its complex fields.