Enum SwitchControlType
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Przełączsterowanietyp
Typ elementu sterującego Switch
.
Aby wywołać enum, wywołaj jego klasę nadrzędną, nazwę i właściwość. Na przykład:
CardService.SwitchControlType.SWITCH
.
Właściwości
Właściwość | Typ | Opis |
SWITCH | Enum | Element sterujący w stylu przełącznika w widżecie przełącznika. Domyślny: |
CHECK_BOX | Enum | Pole wyboru w widżecie przełącznika. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eSwitchControlType\u003c/code\u003e defines the visual style of a switch widget in Google Apps Script Card Service.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eSWITCH\u003c/code\u003e for a toggle-style control (default) and \u003ccode\u003eCHECK_BOX\u003c/code\u003e for a checkbox-style control.\u003c/p\u003e\n"],["\u003cp\u003eTo use these options, call them using the syntax \u003ccode\u003eCardService.SwitchControlType.SWITCH\u003c/code\u003e or \u003ccode\u003eCardService.SwitchControlType.CHECK_BOX\u003c/code\u003e when creating a switch widget.\u003c/p\u003e\n"]]],[],null,["# Enum SwitchControlType\n\nSwitchControlType\n\nType of a [Switch](/apps-script/reference/card-service/switch) widget control.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.SwitchControlType.SWITCH`. \n\n### Properties\n\n| Property | Type | Description |\n|-------------|--------|-----------------------------------------------------|\n| `SWITCH` | `Enum` | Toggle-styled control for a switch widget. Default. |\n| `CHECK_BOX` | `Enum` | Checkbox-styled control for a switch widget. |"]]