AI-generated Key Takeaways
-
OverflowMenu displays a pop-up menu containing OverflowMenuItems and is available for Google Chat apps and in developer preview for Google Workspace Add-ons.
-
Developers can create an OverflowMenu and populate it with OverflowMenuItems using methods like
addMenuItem
. -
The
addMenuItem
method appends an OverflowMenuItem to the OverflowMenu, facilitating menu creation within Google Chat apps and Workspace Add-ons.
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 |
---|---|---|
add | Overflow | Adds a menu item. |
Detailed documentation
addMenuItem(menuItem)
Adds a menu item.
Parameters
Name | Type | Description |
---|---|---|
menu | Overflow | The menu item to add. |
Return
Overflow
— This object, for chaining.