Enum SwitchControlType
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
스위치제어유형
Switch
위젯 컨트롤 유형입니다.
enum을 호출하려면 상위 클래스, 이름, 속성을 호출합니다. 예를 들면
CardService.SwitchControlType.SWITCH
입니다.
속성
속성 | 유형 | 설명 |
SWITCH | Enum | 스위치 위젯의 전환 스타일 컨트롤입니다. 기본값입니다. |
CHECK_BOX | Enum | 스위치 위젯의 체크박스 스타일 컨트롤입니다. |
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 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. |"]]