Google Workspace 부가기능 및 Google Chat 앱에서 사용할 수 있습니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.GridItemLayout.TEXT_BELOW입니다.
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(UTC)"],[[["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"]]