Class OverflowMenu
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
TaşmaMenü
Pop-up menüde görüntülenen OverflowMenuItem
nesnelerinin listesini tutar.
Google Chat uygulamaları için kullanılabilir. Google Workspace eklentileri için geliştirici önizlemesinde.
const overflowMenuItem = CardService.newOverflowMenuItem();
// Finish building the overflow menu item...
const overflowMenu =
CardService.newOverflowMenu().addMenuItem(overflowMenuItem);
Ayrıntılı dokümanlar
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 2025-07-26 UTC."],[[["\u003cp\u003eOverflowMenu displays a pop-up menu containing OverflowMenuItems and is available for Google Chat apps and in developer preview for Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can create an OverflowMenu and populate it with OverflowMenuItems using methods like \u003ccode\u003eaddMenuItem\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eaddMenuItem\u003c/code\u003e method appends an OverflowMenuItem to the OverflowMenu, facilitating menu creation within Google Chat apps and Workspace Add-ons.\u003c/p\u003e\n"]]],[],null,["# Class OverflowMenu\n\nOverflowMenu\n\nHolds a list of [OverflowMenuItem](/apps-script/reference/card-service/overflow-menu-item) objects that are displayed in a pop-up menu.\n\nAvailable for Google Chat apps. In developer preview for Google Workspace add-ons.\n\n\n| **Developer Preview:** Available as part of the [Google Workspace Developer Preview Program](https://developers.google.com/workspace/preview), which grants early access to certain features.\n\n\u003cbr /\u003e\n\n```javascript\nconst overflowMenuItem = CardService.newOverflowMenuItem();\n// Finish building the overflow menu item...\n\nconst overflowMenu =\n CardService.newOverflowMenu().addMenuItem(overflowMenuItem);\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------------|-------------------|-------------------|\n| [addMenuItem(menuItem)](#addMenuItem(OverflowMenuItem)) | [OverflowMenu](#) | Adds a menu item. |\n\nDetailed documentation\n----------------------\n\n### `add``Menu``Item(menuItem)`\n\nAdds a menu item.\n\n#### Parameters\n\n| Name | Type | Description |\n|--------------|----------------------------------------------------------------------------|-----------------------|\n| `menu``Item` | [OverflowMenuItem](/apps-script/reference/card-service/overflow-menu-item) | The menu item to add. |\n\n#### Return\n\n\n[OverflowMenu](#) --- This object, for chaining."]]