Enum SwitchControlType
SwitchControlType
Type of a Switch
widget control.
To call an enum, you call its parent class, name, and property. For example,
CardService.SwitchControlType.SWITCH
.
Properties
Property | Type | Description |
SWITCH | Enum | Toggle-styled control for a switch widget. Default. |
CHECK_BOX | Enum | Checkbox-styled control for a switch widget. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-01 UTC.
[null,null,["Last updated 2023-11-01 UTC."],[[["`SwitchControlType` defines the visual style of a switch widget in Google Apps Script Card Service."],["It offers two options: `SWITCH` for a toggle-style control (default) and `CHECK_BOX` for a checkbox-style control."],["To use these options, call them using the syntax `CardService.SwitchControlType.SWITCH` or `CardService.SwitchControlType.CHECK_BOX` when creating a switch widget."]]],[]]