Reference documentation and code samples for the Google Apps Chat V1 Client class CardAction.
A card action is the action associated with the card. For an invoice card, a typical action would be: delete invoice, email invoice or open the invoice in browser.
Not supported by Google Chat apps.
Generated from protobuf message google.chat.v1.ContextualAddOnMarkup.Card.CardAction
Namespace
Google \ Apps \ Chat \ V1 \ ContextualAddOnMarkup \ CardMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ action_label |
string
The label used to be displayed in the action menu item. |
↳ on_click |
Google\Apps\Chat\V1\WidgetMarkup\OnClick
The onclick action for this action item. |
getActionLabel
The label used to be displayed in the action menu item.
Returns | |
---|---|
Type | Description |
string |
setActionLabel
The label used to be displayed in the action menu item.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getOnClick
The onclick action for this action item.
Returns | |
---|---|
Type | Description |
Google\Apps\Chat\V1\WidgetMarkup\OnClick|null |
hasOnClick
clearOnClick
setOnClick
The onclick action for this action item.
Parameter | |
---|---|
Name | Description |
var |
Google\Apps\Chat\V1\WidgetMarkup\OnClick
|
Returns | |
---|---|
Type | Description |
$this |