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

PropertyTypeDescription
FILL_AVAILABLE_SPACEEnumSizes 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_SPACEEnumSizes the Column to a smaller, fixed share of the card's width, about a third. The exact share varies by client. The column doesn't shrink to fit its content, so a column with small content, such as an icon, can leave empty space.