Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::ContextualAddOnMarkup::Card::Section.
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's currently no need for layout properties (for example, float).
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#header
def header() -> ::String
Returns
- (::String) — The header of the section. Formatted text is supported. 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
Parameter
- value (::String) — The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
Returns
- (::String) — The header of the section. Formatted text is supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
#widgets
def widgets() -> ::Array<::Google::Apps::Chat::V1::WidgetMarkup>
Returns
- (::Array<::Google::Apps::Chat::V1::WidgetMarkup>) — A section must contain at least one widget.
#widgets=
def widgets=(value) -> ::Array<::Google::Apps::Chat::V1::WidgetMarkup>
Parameter
- value (::Array<::Google::Apps::Chat::V1::WidgetMarkup>) — A section must contain at least one widget.
Returns
- (::Array<::Google::Apps::Chat::V1::WidgetMarkup>) — A section must contain at least one widget.