Enum SwitchControlType
Koleksiyonlar ile düzeninizi koruyun
İçeriği tercihlerinize göre kaydedin ve kategorilere ayırın.
SwitchControlType
Switch
widget kontrolünün türü.
Bir enum'u çağırmak için üst sınıfını, adını ve özelliğini çağırırsınız. Örneğin,
CardService.SwitchControlType.SWITCH
.
Özellikler
Mülk | Tür | Açıklama |
SWITCH | Enum | Anahtar widget'ı için açma/kapatma düğmesi stilinde kontrol. Varsayılan. |
CHECK_BOX | Enum | Anahtar widget'ı için onay kutusu stilinde kontrol. |
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2025-07-26 UTC.
[null,null,["Son güncelleme tarihi: 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. |"]]