constgridItem=CardService.newGridItem().setIdentifier('itemA').setTitle('This is a cat').setImage(CardService.newImageComponent()).setLayout(CardService.GridItemLayout.TEXT_BELOW);
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-01-30 (世界標準時間)。"],[[["GridItem represents interactive elements within a grid widget, usable in Google Workspace Add-ons and Chat apps."],["Developers can set an identifier, image, layout, subtitle, text alignment, and title for each GridItem."],["When a user clicks a GridItem, its identifier is returned in the parent grid's on_click callback, enabling interactive functionality."],["GridItem leverages `CardService` methods for customization, such as `setTitle()`, `setImage()`, and `setLayout()`, to define its appearance and behavior."],["Default settings include TEXT_BELOW for layout and START for text alignment, offering a base configuration for GridItems."]]],["Grid items, used in grid widgets for Google Workspace add-ons and Chat apps, are configured using methods like `setIdentifier`, `setImage`, `setLayout`, `setSubtitle`, `setTextAlignment`, and `setTitle`. These methods respectively assign an ID, an image, a text/image layout, a subtitle, text alignment, and a title. The `setIdentifier` method's ID is returned upon a user click. Default layout is `TEXT_BELOW` and the default alignment is `START`. Each method returns the `GridItem` object, enabling chaining.\n"]]