Google Apps Chat V1 Client - Class Widgets (0.1.4)

Reference documentation and code samples for the Google Apps Chat V1 Client class Widgets.

The supported widgets that you can include in a column.

Google Workspace Add-ons and Chat apps: Columns for Google Workspace Add-ons are in Developer Preview.

Generated from protobuf message google.apps.card.v1.Columns.Column.Widgets

Namespace

Google \ Apps \ Card \ V1 \ Columns \ Column

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text_paragraph Google\Apps\Card\V1\TextParagraph

TextParagraph widget.

↳ image Google\Apps\Card\V1\Image

Image widget.

↳ decorated_text Google\Apps\Card\V1\DecoratedText

DecoratedText widget.

↳ button_list Google\Apps\Card\V1\ButtonList

ButtonList widget.

↳ text_input Google\Apps\Card\V1\TextInput

TextInput widget.

↳ selection_input Google\Apps\Card\V1\SelectionInput

SelectionInput widget.

↳ date_time_picker Google\Apps\Card\V1\DateTimePicker

DateTimePicker widget.

getTextParagraph

TextParagraph widget.

Returns
Type Description
Google\Apps\Card\V1\TextParagraph|null

hasTextParagraph

setTextParagraph

TextParagraph widget.

Parameter
Name Description
var Google\Apps\Card\V1\TextParagraph
Returns
Type Description
$this

getImage

Image widget.

Returns
Type Description
Google\Apps\Card\V1\Image|null

hasImage

setImage

Image widget.

Parameter
Name Description
var Google\Apps\Card\V1\Image
Returns
Type Description
$this

getDecoratedText

DecoratedText widget.

Returns
Type Description
Google\Apps\Card\V1\DecoratedText|null

hasDecoratedText

setDecoratedText

DecoratedText widget.

Parameter
Name Description
var Google\Apps\Card\V1\DecoratedText
Returns
Type Description
$this

getButtonList

ButtonList widget.

Returns
Type Description
Google\Apps\Card\V1\ButtonList|null

hasButtonList

setButtonList

ButtonList widget.

Parameter
Name Description
var Google\Apps\Card\V1\ButtonList
Returns
Type Description
$this

getTextInput

TextInput widget.

Returns
Type Description
Google\Apps\Card\V1\TextInput|null

hasTextInput

setTextInput

TextInput widget.

Parameter
Name Description
var Google\Apps\Card\V1\TextInput
Returns
Type Description
$this

getSelectionInput

Returns
Type Description
Google\Apps\Card\V1\SelectionInput|null

hasSelectionInput

setSelectionInput

Parameter
Name Description
var Google\Apps\Card\V1\SelectionInput
Returns
Type Description
$this

getDateTimePicker

Returns
Type Description
Google\Apps\Card\V1\DateTimePicker|null

hasDateTimePicker

setDateTimePicker

Parameter
Name Description
var Google\Apps\Card\V1\DateTimePicker
Returns
Type Description
$this

getData

Returns
Type Description
string