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
Generated from protobuf message google.apps.card.v1.Columns.Column.Widgets
Namespace
Google \ Apps \ Card \ V1 \ Columns \ ColumnMethods
__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. |
↳ chip_list |
Google\Apps\Card\V1\ChipList
ChipList 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
SelectionInput widget.
| Returns | |
|---|---|
| Type | Description |
Google\Apps\Card\V1\SelectionInput|null |
|
hasSelectionInput
setSelectionInput
SelectionInput widget.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Apps\Card\V1\SelectionInput
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getDateTimePicker
DateTimePicker widget.
| Returns | |
|---|---|
| Type | Description |
Google\Apps\Card\V1\DateTimePicker|null |
|
hasDateTimePicker
setDateTimePicker
DateTimePicker widget.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Apps\Card\V1\DateTimePicker
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getChipList
ChipList widget.
| Returns | |
|---|---|
| Type | Description |
Google\Apps\Card\V1\ChipList|null |
|
hasChipList
setChipList
ChipList widget.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Apps\Card\V1\ChipList
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getData
| Returns | |
|---|---|
| Type | Description |
string |
|