class Google::Apis::ChatV1::GoogleAppsCardV1Section

A section contains a collection of widgets that are rendered vertically in the order that they are specified. Across all platforms, cards have a narrow fixed width, so there is currently no need for layout properties, for example, float.

Attributes

collapsible[RW]

Indicates whether this section is collapsible. If a section is collapsible, the description must be given. Corresponds to the JSON property `collapsible` @return [Boolean]

collapsible?[RW]

Indicates whether this section is collapsible. If a section is collapsible, the description must be given. Corresponds to the JSON property `collapsible` @return [Boolean]

header[RW]

The header of the section. Formatted text is supported. Corresponds to the JSON property `header` @return [String]

uncollapsible_widgets_count[RW]

The number of uncollapsible widgets. For example, when a section contains five widgets and the `numUncollapsibleWidget` is set to `2`, the first two widgets are always shown and the last three are collapsed as default. The ` numUncollapsibleWidget` is taken into account only when collapsible is set to ` true`. Corresponds to the JSON property `uncollapsibleWidgetsCount` @return [Fixnum]

widgets[RW]

A section must contain at least 1 widget. Corresponds to the JSON property `widgets` @return [Array<Google::Apis::ChatV1::GoogleAppsCardV1Widget>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/chat_v1/classes.rb, line 1744
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 1749
def update!(**args)
  @collapsible = args[:collapsible] if args.key?(:collapsible)
  @header = args[:header] if args.key?(:header)
  @uncollapsible_widgets_count = args[:uncollapsible_widgets_count] if args.key?(:uncollapsible_widgets_count)
  @widgets = args[:widgets] if args.key?(:widgets)
end