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 |
FormAction
A form action is triggered by this |
↳ open_link |
OpenLink
This |
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 |
|
getOpenLink
This onclick action triggers an open link action if specified.
| Returns | |
|---|---|
| Type | Description |
OpenLink|null |
|
hasOpenLink
setOpenLink
This onclick action triggers an open link action if specified.
| Parameter | |
|---|---|
| Name | Description |
var |
OpenLink
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getData
| Returns | |
|---|---|
| Type | Description |
string |
|