Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::Card::Section.
A section contains a collection of widgets that are rendered vertically in the order that they're specified.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#collapsible
def collapsible() -> ::Boolean
-
(::Boolean) — Indicates whether this section is collapsible.
Collapsible sections hide some or all widgets, but users can expand the section to reveal the hidden widgets by clicking Show more. Users can hide the widgets again by clicking Show less.
To determine which widgets are hidden, specify
uncollapsibleWidgetsCount
.
#collapsible=
def collapsible=(value) -> ::Boolean
-
value (::Boolean) — Indicates whether this section is collapsible.
Collapsible sections hide some or all widgets, but users can expand the section to reveal the hidden widgets by clicking Show more. Users can hide the widgets again by clicking Show less.
To determine which widgets are hidden, specify
uncollapsibleWidgetsCount
.
-
(::Boolean) — Indicates whether this section is collapsible.
Collapsible sections hide some or all widgets, but users can expand the section to reveal the hidden widgets by clicking Show more. Users can hide the widgets again by clicking Show less.
To determine which widgets are hidden, specify
uncollapsibleWidgetsCount
.
#header
def header() -> ::String
- (::String) — Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
#header=
def header=(value) -> ::String
- value (::String) — Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
- (::String) — Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
#uncollapsible_widgets_count
def uncollapsible_widgets_count() -> ::Integer
-
(::Integer) — The number of uncollapsible widgets which remain visible even when a
section is collapsed.
For example, when a section contains five widgets and the
uncollapsibleWidgetsCount
is set to2
, the first two widgets are always shown and the last three are collapsed by default. TheuncollapsibleWidgetsCount
is taken into account only whencollapsible
istrue
.
#uncollapsible_widgets_count=
def uncollapsible_widgets_count=(value) -> ::Integer
-
value (::Integer) — The number of uncollapsible widgets which remain visible even when a
section is collapsed.
For example, when a section contains five widgets and the
uncollapsibleWidgetsCount
is set to2
, the first two widgets are always shown and the last three are collapsed by default. TheuncollapsibleWidgetsCount
is taken into account only whencollapsible
istrue
.
-
(::Integer) — The number of uncollapsible widgets which remain visible even when a
section is collapsed.
For example, when a section contains five widgets and the
uncollapsibleWidgetsCount
is set to2
, the first two widgets are always shown and the last three are collapsed by default. TheuncollapsibleWidgetsCount
is taken into account only whencollapsible
istrue
.
#widgets
def widgets() -> ::Array<::Google::Apps::Card::V1::Widget>
- (::Array<::Google::Apps::Card::V1::Widget>) — All the widgets in the section. Must contain at least one widget.
#widgets=
def widgets=(value) -> ::Array<::Google::Apps::Card::V1::Widget>
- value (::Array<::Google::Apps::Card::V1::Widget>) — All the widgets in the section. Must contain at least one widget.
- (::Array<::Google::Apps::Card::V1::Widget>) — All the widgets in the section. Must contain at least one widget.