class Google::Apis::ChatV1::GoogleAppsCardV1Grid

Represents a Grid widget that displays items in a configurable grid layout.

Attributes

border_style[RW]

Represents the complete border style applied to widgets. Corresponds to the JSON property `borderStyle` @return [Google::Apis::ChatV1::GoogleAppsCardV1BorderStyle]

column_count[RW]

The number of columns to display in the grid. A default value is used if this field isn't specified, and that default value is different depending on where the grid is shown (dialog versus companion). Corresponds to the JSON property `columnCount` @return [Fixnum]

items[RW]

The items to display in the grid. Corresponds to the JSON property `items` @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1GridItem>]

on_click[RW]

This callback is reused by each individual grid item, but with the item's identifier and index in the items list added to the callback's parameters. Corresponds to the JSON property `onClick` @return [Google::Apis::ChatV1::GoogleAppsCardV1OnClick]

title[RW]

The text that displays in the grid header. Corresponds to the JSON property `title` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 1429
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 1434
def update!(**args)
  @border_style = args[:border_style] if args.key?(:border_style)
  @column_count = args[:column_count] if args.key?(:column_count)
  @items = args[:items] if args.key?(:items)
  @on_click = args[:on_click] if args.key?(:on_click)
  @title = args[:title] if args.key?(:title)
end