Holds a list of OverflowMenuItem
objects that are displayed in a pop-up menu.
Only available for Google Chat apps. Not available 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 |
---|---|---|
addMenuItem(menuItem) | OverflowMenu | Adds a menu item. |
Detailed documentation
addMenuItem(menuItem)
Adds a menu item.
Parameters
Name | Type | Description |
---|---|---|
menuItem | OverflowMenuItem | The menu item to add. |
Return
OverflowMenu
— This object, for chaining.