Enum Icon
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ừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\u003cp\u003ePredefined icons are available for use in UI objects like ImageButtons and DecoratedText widgets within Google Workspace Add-ons and Google Chat apps.\u003c/p\u003e\n"],["\u003cp\u003eThese icons are accessed by calling their parent class, name, and property, for example: \u003ccode\u003eCardService.Icon.BOOKMARK\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eA variety of icons are offered, including but not limited to: airplane, bookmark, bus, car, clock, and confirmation number.\u003c/p\u003e\n"],["\u003cp\u003eBy default, no icon is applied unless specified using an enum value other than \u003ccode\u003eNONE\u003c/code\u003e.\u003c/p\u003e\n"]]],["Predefined icons are available for UI objects like ImageButton and DecoratedText in Google Workspace add-ons and Chat apps. These icons are accessed via the `CardService.Icon` class, followed by the icon's name (e.g., `CardService.Icon.BOOKMARK`). Available icons include `NONE` (default), `AIRPLANE`, `BOOKMARK`, `BUS`, `CAR`, and others relating to common items, up to `VIDEO_PLAY`.\n"],null,["# Enum Icon\n\nIcon\n\nPredefined icons that can be used in various UI objects, such as [ImageButton](/apps-script/reference/card-service/image-button) or [DecoratedText](/apps-script/reference/card-service/decorated-text) widgets.\n\nAvailable for Google Workspace add-ons and Google Chat apps.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.Icon.BOOKMARK`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------------------|--------|-------------------|\n| `NONE` | `Enum` | No icon. Default. |\n| `AIRPLANE` | `Enum` | |\n| `BOOKMARK` | `Enum` | |\n| `BUS` | `Enum` | |\n| `CAR` | `Enum` | |\n| `CLOCK` | `Enum` | |\n| `CONFIRMATION_NUMBER_ICON` | `Enum` | |\n| `DOLLAR` | `Enum` | |\n| `DESCRIPTION` | `Enum` | |\n| `EMAIL` | `Enum` | |\n| `EVENT_PERFORMER` | `Enum` | |\n| `EVENT_SEAT` | `Enum` | |\n| `FLIGHT_ARRIVAL` | `Enum` | |\n| `FLIGHT_DEPARTURE` | `Enum` | |\n| `HOTEL` | `Enum` | |\n| `HOTEL_ROOM_TYPE` | `Enum` | |\n| `INVITE` | `Enum` | |\n| `MAP_PIN` | `Enum` | |\n| `MEMBERSHIP` | `Enum` | |\n| `MULTIPLE_PEOPLE` | `Enum` | |\n| `OFFER` | `Enum` | |\n| `PERSON` | `Enum` | |\n| `PHONE` | `Enum` | |\n| `RESTAURANT_ICON` | `Enum` | |\n| `SHOPPING_CART` | `Enum` | |\n| `STAR` | `Enum` | |\n| `STORE` | `Enum` | |\n| `TICKET` | `Enum` | |\n| `TRAIN` | `Enum` | |\n| `VIDEO_CAMERA` | `Enum` | |\n| `VIDEO_PLAY` | `Enum` | |"]]