Enum ChipListLayout
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
ChipElencoLayout
Un enum che specifica il layout per ChipList
.
WRAPPED
è il valore predefinito; i chip vanno a capo nella riga successiva se non c'è abbastanza spazio orizzontale. I chip HORIZONTAL_SCROLLABLE
scorrono orizzontalmente se non si adattano allo spazio disponibile.
Per chiamare un enum, devi chiamare la relativa classe, il nome e la proprietà di base. Ad esempio,
CardService.ChipListLayout.WRAPPED
.
Proprietà
Proprietà | Tipo | Descrizione |
WRAPPED | Enum | L'elenco dei chip viene a capo nella riga successiva se non c'è spazio orizzontale sufficiente. Predefinita. |
HORIZONTAL_SCROLLABLE | Enum | I chip scorrono orizzontalmente se non rientrano nello spazio disponibile. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-26 UTC.
[null,null,["Ultimo aggiornamento 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eChipListLayout\u003c/code\u003e is an enum used to define the layout of a \u003ccode\u003eChipList\u003c/code\u003e within Google Apps Script's Card Service.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two layout options: \u003ccode\u003eWRAPPED\u003c/code\u003e (default) where chips wrap to the next line when space is limited, and \u003ccode\u003eHORIZONTAL_SCROLLABLE\u003c/code\u003e where chips scroll horizontally if they exceed the available space.\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, call the enum through its parent class and property, like \u003ccode\u003eCardService.ChipListLayout.WRAPPED\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Enum ChipListLayout\n\nChipListLayout\n\nAn enum that specifies the layout for [ChipList](/apps-script/reference/card-service/chip-list).\n\n\n`WRAPPED` is the default; chips wrap to the next line if there isn't enough\nhorizontal space. `HORIZONTAL_SCROLLABLE` chips scroll horizontally if they don't fit\nin the available space.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.ChipListLayout.WRAPPED`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------------------|--------|---------------------------------------------------------------------------------------|\n| `WRAPPED` | `Enum` | The chip list wraps to the next line if there isn't enough horizontal space. Default. |\n| `HORIZONTAL_SCROLLABLE` | `Enum` | The chips scroll horizontally if they don't fit in the available space. |"]]