Enum HorizontalSizeStyle
سبک اندازه افقی فهرستی که تعیین میکند ویجتها چگونه فضای یک ستون را پر کنند.
برای برنامههای Google Chat و افزونههای Google Workspace موجود است.
برای فراخوانی یک enum، کلاس والد، نام و ویژگی آن را فراخوانی می کنید. به عنوان مثال، CardService.HorizontalSizeStyle.FILL_AVAILABLE_SPACE
.
خواص
اموال | تایپ کنید | توضیحات |
---|
FILL_AVAILABLE_SPACE | Enum | Widget به گونه ای اندازه می دهد که فضای افقی موجود یک Column را پر کند. اگر ستون دیگر فضای بیشتری داشته باشد، ویجت می تواند فضای فراتر از فضای ستون خود را پر کند. پیش فرض |
FILL_MINIMUM_SPACE | Enum | اندازه Widget را تغییر می دهد تا کمترین فضای افقی را در یک Column پر کند. حداقل فضا بر اساس اندازه ویجت است. اگر ویجت کوچکتر از فضای ستون باشد، برای پر کردن فضا بزرگ نمی شود. |
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-30 بهوقت ساعت هماهنگ جهانی."],[[["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"]]