Enum SwitchControlType
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
نوعالتبديلفي عناصر التحكّم
نوع عنصر التحكّم في التطبيق المصغّر Switch
.
لاستدعاء قائمة أرقام صحيحة، عليك استدعاء الصف الرئيسي والاسم والخاصية. مثلاً:
CardService.SwitchControlType.SWITCH
أماكن إقامة
الموقع | النوع | الوصف |
SWITCH | Enum | عنصر تحكّم بتصميم زر التبديل لأداة التبديل تلقائي: |
CHECK_BOX | Enum | عنصر تحكّم بتصميم مربّع الاختيار لتطبيق مصغّر للتبديل |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\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. |"]]