Enum ImageButtonStyle
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."],[[["ImageButtonStyle is used to define the style of an ImageButton in Google Apps Script."],["There are four styles available: `BORDERLESS` (default), `OUTLINED`, `FILLED`, and `FILLED_TONAL`."],["Each style provides a different visual appearance for the image button, such as background color and border presence."],["Styles are accessed using the parent class and property name, like `CardService.ImageButtonStyle.BORDERLESS`."]]],[]]