Class: Google::Apis::ChatV1::GoogleAppsCardV1Widget
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1Widget
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
A widget is a UI element that presents texts, images, etc.
Instance Attribute Summary collapse
-
#button_list ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ButtonList
A list of buttons layed out horizontally.
-
#date_time_picker ⇒ Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker
The widget that lets users to specify a date and time.
-
#decorated_text ⇒ Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText
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.
-
#divider ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Divider
A divider that appears in between widgets.
-
#grid ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Grid
Represents a Grid widget that displays items in a configurable grid layout.
-
#horizontal_alignment ⇒ String
The horizontal alignment of this widget.
-
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Image
An image that is specified by a URL and can have an onClick action.
-
#selection_input ⇒ Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput
A widget that creates a UI item (for example, a drop-down list) with options for users to select.
-
#text_input ⇒ Google::Apis::ChatV1::GoogleAppsCardV1TextInput
A text input is a UI item where users can input text.
-
#text_paragraph ⇒ Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph
A paragraph of text that supports formatting.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1Widget
constructor
A new instance of GoogleAppsCardV1Widget.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1Widget
Returns a new instance of GoogleAppsCardV1Widget.
2066 2067 2068 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2066 def initialize(**args) update!(**args) end |
Instance Attribute Details
#button_list ⇒ Google::Apis::ChatV1::GoogleAppsCardV1ButtonList
A list of buttons layed out horizontally.
Corresponds to the JSON property buttonList
2014 2015 2016 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2014 def @button_list end |
#date_time_picker ⇒ Google::Apis::ChatV1::GoogleAppsCardV1DateTimePicker
The widget that lets users to specify a date and time.
Corresponds to the JSON property dateTimePicker
2019 2020 2021 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2019 def date_time_picker @date_time_picker end |
#decorated_text ⇒ Google::Apis::ChatV1::GoogleAppsCardV1DecoratedText
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
2026 2027 2028 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2026 def decorated_text @decorated_text end |
#divider ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Divider
A divider that appears in between widgets.
Corresponds to the JSON property divider
2031 2032 2033 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2031 def divider @divider end |
#grid ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Grid
Represents a Grid widget that displays items in a configurable grid layout.
Corresponds to the JSON property grid
2036 2037 2038 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2036 def grid @grid end |
#horizontal_alignment ⇒ String
The horizontal alignment of this widget.
Corresponds to the JSON property horizontalAlignment
2041 2042 2043 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2041 def horizontal_alignment @horizontal_alignment end |
#image ⇒ Google::Apis::ChatV1::GoogleAppsCardV1Image
An image that is specified by a URL and can have an onClick action.
Corresponds to the JSON property image
2046 2047 2048 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2046 def image @image end |
#selection_input ⇒ Google::Apis::ChatV1::GoogleAppsCardV1SelectionInput
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
2052 2053 2054 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2052 def selection_input @selection_input end |
#text_input ⇒ Google::Apis::ChatV1::GoogleAppsCardV1TextInput
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
2058 2059 2060 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2058 def text_input @text_input end |
#text_paragraph ⇒ Google::Apis::ChatV1::GoogleAppsCardV1TextParagraph
A paragraph of text that supports formatting. See Text formatting for details.
Corresponds to the JSON property textParagraph
2064 2065 2066 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2064 def text_paragraph @text_paragraph end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2071 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 |