Google Apps Chat V1 Client - Class OnClick (0.3.0)

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

An onclick action (for example, open a link).

Generated from protobuf message google.chat.v1.WidgetMarkup.OnClick

Namespace

Google \ Apps \ Chat \ V1 \ WidgetMarkup

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ action Google\Apps\Chat\V1\WidgetMarkup\FormAction

A form action is triggered by this onclick action if specified.

↳ open_link Google\Apps\Chat\V1\WidgetMarkup\OpenLink

This onclick action triggers an open link action if specified.

getAction

A form action is triggered by this onclick action if specified.

Returns
Type Description
Google\Apps\Chat\V1\WidgetMarkup\FormAction|null

hasAction

setAction

A form action is triggered by this onclick action if specified.

Parameter
Name Description
var Google\Apps\Chat\V1\WidgetMarkup\FormAction
Returns
Type Description
$this

This onclick action triggers an open link action if specified.

Returns
Type Description
Google\Apps\Chat\V1\WidgetMarkup\OpenLink|null

This onclick action triggers an open link action if specified.

Parameter
Name Description
var Google\Apps\Chat\V1\WidgetMarkup\OpenLink
Returns
Type Description
$this

getData

Returns
Type Description
string