Class OverflowMenu  |  Apps Script  |  Google for Developers (original) (raw)

Class OverflowMenu

OverflowMenu

Holds a list of [OverflowMenuItem](/apps-script/reference/card-service/overflow-menu-item) 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
addMenuItem(menuItem) OverflowMenu Adds a menu item.

Detailed documentation

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-12-03 UTC.