Google Apps Chat V1 Client - Class Button (0.12.0)

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 \ WidgetMarkup

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ text_button
TextButton

A button with text and onclick action.

↳ image_button
ImageButton

A button with image and onclick action.

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
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
Returns
Type
Description
$this

getType

Returns
Type
Description
string
Create a Mobile Website
View Site in Mobile | Classic
Share by: