Enum HorizontalSizeStyle
HorizontalSizeStyle
An enum that sets how widgets fill the space of a column.
Available for Google Chat apps and Google Workspace Add-ons.
To call an enum, you call its parent class, name, and property. For example,
CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE
.
Properties
Property | Type | Description |
FILL_AVAILABLE_SPACE | Enum | Sizes the Widget to fill the available horizontal space of a Column . If the
other column has more space, the widget can fill the space beyond the space of its own column.
Default. |
FILL_MINIMUM_SPACE | Enum | Resizes the Widget to fill the least amount of horizontal space in a Column .
The minimum space is based on the size of the widget. If the widget is smaller than the space
of the column, it doesn't expand to fill the space. |
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-07-24 UTC.
[null,null,["Last updated 2024-07-24 UTC."],[[["HorizontalSizeStyle is an enum used to define how widgets occupy space within a column in Google Chat apps and Google Workspace Add-ons."],["It offers two properties: `FILL_AVAILABLE_SPACE` (default) which expands the widget to fill the available horizontal space, potentially exceeding its column's width, and `FILL_MINIMUM_SPACE` which sizes the widget to its minimum required width based on its content."],["To use these properties, call them using the parent class, name, and property, like `CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE`."]]],[]]