Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Trình đơn mục bổ sung
Chứa danh sách các đối tượng OverflowMenuItem hiển thị trong trình đơn bật lên.
Có sẵn cho các ứng dụng Google Chat. Trong bản dùng thử dành cho nhà phát triển cho tiện ích bổ sung của Google Workspace.
constoverflowMenuItem=CardService.newOverflowMenuItem();// Finish building the overflow menu item...constoverflowMenu=CardService.newOverflowMenu().addMenuItem(overflowMenuItem);
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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."]]