Google Apps Chat V1 Client - Class Section (0.1.3)

Reference documentation and code samples for the Google Apps Chat V1 Client class 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).

Generated from protobuf message google.chat.v1.ContextualAddOnMarkup.Card.Section

Namespace

Google \ Apps \ Chat \ V1 \ ContextualAddOnMarkup \ Card

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ header 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 array<Google\Apps\Chat\V1\WidgetMarkup>

A section must contain at least one widget.

getHeader

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
Type Description
string

setHeader

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.

Parameter
Name Description
var string
Returns
Type Description
$this

getWidgets

A section must contain at least one widget.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setWidgets

A section must contain at least one widget.

Parameter
Name Description
var array<Google\Apps\Chat\V1\WidgetMarkup>
Returns
Type Description
$this