GoogleApi.Chat.V1.Model.GoogleAppsCardV1DateTimePicker (google_api_chat v0.26.0) View Source

The widget that lets users to specify a date and time.

Attributes

  • label (type: String.t, default: nil) - The label for the field that displays to the user.
  • name (type: String.t, default: nil) - The name of the text input that's used in formInput, and uniquely identifies this input.
  • onChangeAction (type: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t, default: nil) - Triggered when the user clicks Save or Clear from the date/time picker dialog. This is only triggered if the value changed as a result of the Save/Clear operation.
  • timezoneOffsetDate (type: integer(), default: nil) - The number representing the time zone offset from UTC, in minutes. If set, the value_ms_epoch is displayed in the specified time zone. If not set, it uses the user's time zone setting on the client side.
  • type (type: String.t, default: nil) - The type of the date/time picker.
  • valueMsEpoch (type: String.t, default: nil) - The value to display as the default value before user input or previous user input. It is represented in milliseconds (Epoch time). For DATE_AND_TIME type, the full epoch value is used. For DATE_ONLY type, only date of the epoch time is used. For TIME_ONLY type, only time of the epoch time is used. For example, you can set epoch time to 3 * 60 * 60 * 1000 to represent 3am.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.Chat.V1.Model.GoogleAppsCardV1DateTimePicker{
  label: String.t() | nil,
  name: String.t() | nil,
  onChangeAction: GoogleApi.Chat.V1.Model.GoogleAppsCardV1Action.t() | nil,
  timezoneOffsetDate: integer() | nil,
  type: String.t() | nil,
  valueMsEpoch: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.