Enum HorizontalSizeStyle
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
가로크기스타일
위젯이 열의 공간을 채우는 방식을 설정하는 enum입니다.
Google Chat 앱 및 Google Workspace 부가기능에서 사용할 수 있습니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE
입니다.
속성
속성 | 유형 | 설명 |
FILL_AVAILABLE_SPACE | Enum | Column 의 사용 가능한 가로 공간을 채우도록 Widget 의 크기를 조정합니다. 다른 열에 더 많은 공간이 있으면 위젯이 자체 열의 공간을 넘어 공간을 채울 수 있습니다.
기본값입니다. |
FILL_MINIMUM_SPACE | Enum | Widget 의 크기를 조절하여 Column 의 가로 공간을 최소로 채웁니다.
최소 공간은 위젯의 크기에 따라 다릅니다. 위젯이 열의 공간보다 작으면 공간을 채우기 위해 확장되지 않습니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003eHorizontalSizeStyle is an enum used to define how widgets occupy space within a column in Google Chat apps and Google Workspace Add-ons.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two properties: \u003ccode\u003eFILL_AVAILABLE_SPACE\u003c/code\u003e (default) which expands the widget to fill the available horizontal space, potentially exceeding its column's width, and \u003ccode\u003eFILL_MINIMUM_SPACE\u003c/code\u003e which sizes the widget to its minimum required width based on its content.\u003c/p\u003e\n"],["\u003cp\u003eTo use these properties, call them using the parent class, name, and property, like \u003ccode\u003eCardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE\u003c/code\u003e.\u003c/p\u003e\n"]]],["`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"],null,["# Enum HorizontalSizeStyle\n\nHorizontalSizeStyle\n\nAn enum that sets how widgets fill the space of a column.\n\nAvailable for Google Chat apps and Google Workspace add-ons.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `FILL_AVAILABLE_SPACE` | `Enum` | Sizes the [Widget](/apps-script/reference/card-service/widget) to fill the available horizontal space of a [Column](/apps-script/reference/card-service/column). If the other column has more space, the widget can fill the space beyond the space of its own column. Default. |\n| `FILL_MINIMUM_SPACE` | `Enum` | Resizes the [Widget](/apps-script/reference/card-service/widget) to fill the least amount of horizontal space in a [Column](/apps-script/reference/card-service/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. |"]]