Enum ImageButtonStyle
Stay organized with collections
Save and categorize content based on your preferences.
ImageButtonStyle
An enum that specifies the style for ImageButton
.
BORDERLESS
is the default; it renders a simple image button with no border.
FILLED
buttons have a background color you can set with ImageButton
.
To call an enum, you call its parent class, name, and property. For example,
CardService.ImageButtonStyle.BORDERLESS
.
Properties
Property | Type | Description |
BORDERLESS | Enum | Image button with no border. Default. |
OUTLINED | Enum | Image button with clear background. |
FILLED | Enum | Image button with colored background. |
FILLED_TONAL | Enum | Image button with an alternative middle ground between filled and outlined buttons. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-02 UTC.
[null,null,["Last updated 2024-12-02 UTC."],[[["\u003cp\u003eImageButtonStyle is used to define the style of an ImageButton in Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eThere are four styles available: \u003ccode\u003eBORDERLESS\u003c/code\u003e (default), \u003ccode\u003eOUTLINED\u003c/code\u003e, \u003ccode\u003eFILLED\u003c/code\u003e, and \u003ccode\u003eFILLED_TONAL\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach style provides a different visual appearance for the image button, such as background color and border presence.\u003c/p\u003e\n"],["\u003cp\u003eStyles are accessed using the parent class and property name, like \u003ccode\u003eCardService.ImageButtonStyle.BORDERLESS\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum ImageButtonStyle\n\nImageButtonStyle\n\nAn enum that specifies the style for [ImageButton](/apps-script/reference/card-service/image-button).\n\n\n`BORDERLESS` is the default; it renders a simple image button with no border.\n`FILLED` buttons have a background color you can set with [ImageButton](/apps-script/reference/card-service/image-button).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.ImageButtonStyle.BORDERLESS`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|-------------------------------------------------------------------------------------|\n| `BORDERLESS` | `Enum` | Image button with no border. Default. |\n| `OUTLINED` | `Enum` | Image button with clear background. |\n| `FILLED` | `Enum` | Image button with colored background. |\n| `FILLED_TONAL` | `Enum` | Image button with an alternative middle ground between filled and outlined buttons. |"]]