Reference documentation and code samples for the Google Apps Chat V1 Client class Button.
A button. Can be a text button or an image button.
Generated from protobuf message google.chat.v1.WidgetMarkup.Button
Namespace
Google \ Apps \ Chat \ V1 \ WidgetMarkupMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text_button |
TextButton
A button with text and |
↳ image_button |
ImageButton
A button with image and |
getTextButton
A button with text and onclick action.
| Returns | |
|---|---|
| Type | Description |
TextButton|null |
|
hasTextButton
setTextButton
A button with text and onclick action.
| Parameter | |
|---|---|
| Name | Description |
var |
TextButton
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getImageButton
A button with image and onclick action.
| Returns | |
|---|---|
| Type | Description |
ImageButton|null |
|
hasImageButton
setImageButton
A button with image and onclick action.
| Parameter | |
|---|---|
| Name | Description |
var |
ImageButton
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
| Returns | |
|---|---|
| Type | Description |
string |
|