Enum HorizontalSizeStyle
HorizontalGrößeStil
Ein Enum, das festlegt, wie Widgets den Bereich einer Spalte ausfüllen.
Verfügbar für Google Chat-Apps und Google Workspace-Add-ons.
Wenn Sie ein Enum aufrufen möchten, rufen Sie die übergeordnete Klasse, den Namen und die Eigenschaft auf. Beispiel:
CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE
.
Attribute
Attribut | Typ | Beschreibung |
FILL_AVAILABLE_SPACE | Enum | Die Größe des Widget wird so angepasst, dass es den verfügbaren horizontalen Bereich eines Column ausfüllt. Wenn die andere Spalte mehr Platz hat, kann das Widget den Bereich über den Platz seiner eigenen Spalte hinaus füllen.
Standard. |
FILL_MINIMUM_SPACE | Enum | Die Größe der Widget wird so angepasst, dass sie in einem Column möglichst wenig horizontalen Raum einnimmt.
Der Mindestabstand hängt von der Größe des Widgets ab. Wenn das Widget kleiner als der Platz in der Spalte ist, wird es nicht maximiert, um den gesamten Platz auszufüllen. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-01-30 (UTC).
[null,null,["Zuletzt aktualisiert: 2025-01-30 (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`."]]],["`HorizontalSizeStyle` is an enum controlling widget sizing within a column in Google Chat apps and Workspace add-ons. It has two properties: `FILL_AVAILABLE_SPACE`, which is the default and allows a widget to occupy all horizontal space, even extending beyond its column if another has more space, and `FILL_MINIMUM_SPACE`, where the widget uses only the minimum space it requires and will not expand to fill the column.\n"]]