Class: Google::Apis::ChatV1::GoogleAppsCardV1Columns
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1Columns
- 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
The Columns widget displays up to 2 columns in a card message or dialog. You
can add widgets to each column; the widgets appear in the order that they are
specified. The height of each column is determined by the taller column. For
example, if the first column is taller than the second column, both columns
have the height of the first column. Because each column can contain a
different number of widgets, you can't define rows or align widgets between
the columns. Columns are displayed side-by-side. You can customize the width
of each column using the HorizontalSizeStyle field. If the user's screen
width is too narrow, the second column wraps below the first: * On web, the
second column wraps if the screen width is less than or equal to 480 pixels. *
On iOS devices, the second column wraps if the screen width is less than or
equal to 300 pt. * On Android devices, the second column wraps if the screen
width is less than or equal to 320 dp. To include more than 2 columns, or to
use rows, use the Grid widget. Supported by Chat apps, but not Google
Workspace Add-ons.
Instance Attribute Summary collapse
-
#column_items ⇒ Array<Google::Apis::ChatV1::GoogleAppsCardV1Column>
An array of columns.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1Columns
constructor
A new instance of GoogleAppsCardV1Columns.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1Columns
Returns a new instance of GoogleAppsCardV1Columns.
1576 1577 1578 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1576 def initialize(**args) update!(**args) end |
Instance Attribute Details
#column_items ⇒ Array<Google::Apis::ChatV1::GoogleAppsCardV1Column>
An array of columns. You can include up to 2 columns in a card or dialog.
Corresponds to the JSON property columnItems
1574 1575 1576 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1574 def column_items @column_items end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1581 1582 1583 |
# File 'lib/google/apis/chat_v1/classes.rb', line 1581 def update!(**args) @column_items = args[:column_items] if args.key?(:column_items) end |