Google Apps Chat V1 Client - Class OnClick (0.6.1)

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 FormAction

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

↳ open_link 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
FormAction|null

hasAction

setAction

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

Parameter
Name Description
var FormAction
Returns
Type Description
$this

This onclick action triggers an open link action if specified.

Returns
Type Description
OpenLink|null

This onclick action triggers an open link action if specified.

Parameter
Name Description
var OpenLink
Returns
Type Description
$this

getData

Returns
Type Description
string