Class OverflowMenu Stay organized with collections Save and categorize content based on your preferences.
Page Summary
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 ofOverflow objects that are displayed in a pop-up menu.
Available for Google Chat apps. In developer preview for Google Workspace add-ons.
Developer Preview: Available as part of theGoogle Workspace Developer Preview Program, which grants early access to certain features.
constoverflowMenuItem=CardService.newOverflowMenuItem();// Finish building the overflow menu item...constoverflowMenu=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.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.