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 \ WidgetMarkupMethods
__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 |
↳ open_link |
Google\Apps\Chat\V1\WidgetMarkup\OpenLink
This |
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 |
getOpenLink
This onclick
action triggers an open link action if specified.
Returns | |
---|---|
Type | Description |
Google\Apps\Chat\V1\WidgetMarkup\OpenLink|null |
hasOpenLink
setOpenLink
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 |