Class OverflowMenu

OverflowMenu

Holds a list of OverflowMenuItem 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

MethodReturn typeBrief description
addMenuItem(menuItem)OverflowMenuAdds a menu item.

Detailed documentation

addMenuItem(menuItem)

Adds a menu item.

Parameters

NameTypeDescription
menuItemOverflowMenuItemThe menu item to add.

Return

OverflowMenu — This object, for chaining.