AI-generated Key Takeaways
-
OverflowMenu holds a list of OverflowMenuItem objects displayed in a pop-up menu.
-
OverflowMenu is available for Google Chat apps and in developer preview for Google Workspace add-ons.
-
The addMenuItem method is used to add an OverflowMenuItem to the OverflowMenu.
-
The addMenuItem method takes an OverflowMenuItem object as a parameter and returns the OverflowMenu object for chaining.
Holds a list of Overflow
objects that are displayed in a pop-up menu.
Available for Google Chat apps. In developer preview for Google Workspace add-ons.
const overflowMenuItem = CardService . newOverflowMenuItem (); // Finish building the overflow menu item... const overflowMenu = CardService . newOverflowMenu (). addMenuItem ( overflowMenuItem );
Methods
| Method | Return type | Brief description |
|---|---|---|
Overflow
|
Adds a menu item. |
Detailed documentation
add
Menu
Item(menuItem)
Adds a menu item.
Parameters
| Name | Type | Description |
|---|---|---|
menu
|
Overflow
|
The menu item to add. |
Return
Overflow
— This object, for chaining.

