class Google::Apis::ChatV1::GoogleAppsCardV1Widget

A widget is a UI element that presents texts, images, etc.

Attributes

button_list[RW]

A list of buttons layed out horizontally. Corresponds to the JSON property `buttonList` @return [Google::Apis::ChatV1::GoogleAppsCardV1ButtonList]

date_time_picker[RW]

The widget that lets users to specify a date and time. Corresponds to the JSON property `dateTimePicker` @return [Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker]

decorated_text[RW]

A widget that displays text with optional decorations such as a label above or below the text, an icon in front of the text, a selection widget or a button after the text. Corresponds to the JSON property `decoratedText` @return [Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText]

divider[RW]

A divider that appears in between widgets. Corresponds to the JSON property `divider` @return [Google::Apis::ChatV1::GoogleAppsCardV1Divider]

grid[RW]

Represents a Grid widget that displays items in a configurable grid layout. Corresponds to the JSON property `grid` @return [Google::Apis::ChatV1::GoogleAppsCardV1Grid]

horizontal_alignment[RW]

The horizontal alignment of this widget. Corresponds to the JSON property `horizontalAlignment` @return [String]

image[RW]

An image that is specified by a URL and can have an onClick action. Corresponds to the JSON property `image` @return [Google::Apis::ChatV1::GoogleAppsCardV1Image]

selection_input[RW]

A widget that creates a UI item (for example, a drop-down list) with options for users to select. Corresponds to the JSON property `selectionInput` @return [Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput]

text_input[RW]

A text input is a UI item where users can input text. A text input can also have an onChange action and suggestions. Corresponds to the JSON property `textInput` @return [Google::Apis::ChatV1::GoogleAppsCardV1TextInput]

text_paragraph[RW]

A paragraph of text that supports formatting. See [Text formatting](workspace/ add-ons/concepts/widgets#text_formatting“) for details. Corresponds to the JSON property `textParagraph` @return [Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 2065
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/chat_v1/classes.rb, line 2070
def update!(**args)
  @button_list = args[:button_list] if args.key?(:button_list)
  @date_time_picker = args[:date_time_picker] if args.key?(:date_time_picker)
  @decorated_text = args[:decorated_text] if args.key?(:decorated_text)
  @divider = args[:divider] if args.key?(:divider)
  @grid = args[:grid] if args.key?(:grid)
  @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
  @image = args[:image] if args.key?(:image)
  @selection_input = args[:selection_input] if args.key?(:selection_input)
  @text_input = args[:text_input] if args.key?(:text_input)
  @text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph)
end