Reference documentation and code samples for the Google Apps Chat V1 Client class OverflowMenu.
A widget that presents a pop-up menu with one or more actions that users can
invoke. For example, showing non-primary actions in a card. You can use this
widget when actions don't fit in the available space. To use, specify this
widget in the OnClick action of widgets that support it. For example, in a
Button.
Google Workspace add-ons and Chat apps:
Generated from protobuf message google.apps.card.v1.OverflowMenu
Namespace
Google \ Apps \ Card \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ items |
array<OverflowMenu\OverflowMenuItem>
Required. The list of menu options. |
getItems
Required. The list of menu options.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setItems
Required. The list of menu options.
| Parameter | |
|---|---|
| Name | Description |
var |
array<OverflowMenu\OverflowMenuItem>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|