Enum TextButtonStyle
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
نصزرنمط
عنصر مصنّف يحدّد تنسيق TextButton
.
OUTLINED
هو الخيار التلقائي، ويعرض زر نص بسيطًا مع خلفية واضحة.
تحتوي أزرار FILLED
على لون خلفية يمكنك ضبطه باستخدام TextButton.setBackgroundColor(backgroundColor)
.
لاستدعاء قائمة أرقام صحيحة، عليك استدعاء الصف الرئيسي والاسم والخاصية. مثلاً:
CardService.TextButtonStyle.OUTLINED
أماكن إقامة
الموقع | النوع | الوصف |
OUTLINED | Enum | زر نص عادي مع خلفية شفافة تلقائي: |
TEXT | Enum | يُرجى عدم استخدامها. إصدار OUTLINED الذي سيتم إيقافه نهائيًا لا تزيل الحقل إلى أن يتم تأكيد عدم
استخدامه من قِبل أي تطبيقات. |
FILLED | Enum | زر نصي بخلفية ملونة |
FILLED_TONAL | Enum | زر نص عادي مع خيار بديل بين الأزرار الملونة والمخطّطة |
BORDERLESS | Enum | زر نص عادي بدون حدود |
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003e\u003ccode\u003eTextButtonStyle\u003c/code\u003e is used to define the style of a \u003ccode\u003eTextButton\u003c/code\u003e in Google Apps Script's Card Service.\u003c/p\u003e\n"],["\u003cp\u003eIt offers two options: \u003ccode\u003eOUTLINED\u003c/code\u003e (default, transparent background) and \u003ccode\u003eFILLED\u003c/code\u003e (colored background, customizable with \u003ccode\u003esetBackgroundColor()\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eTo use a style, refer to it using the syntax: \u003ccode\u003eCardService.TextButtonStyle.STYLE_NAME\u003c/code\u003e (e.g., \u003ccode\u003eCardService.TextButtonStyle.OUTLINED\u003c/code\u003e).\u003c/p\u003e\n"]]],[],null,["# Enum TextButtonStyle\n\nTextButtonStyle\n\nAn enum that specifies the style for [TextButton](/apps-script/reference/card-service/text-button).\n\n\n`OUTLINED` is the default; it renders a simple text button with clear background.\n`FILLED` buttons have a background color you can set with [TextButton.setBackgroundColor(backgroundColor)](/apps-script/reference/card-service/text-button#setBackgroundColor(String)).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.TextButtonStyle.OUTLINED`. \n\n### Properties\n\n| Property | Type | Description |\n|----------------|--------|-----------------------------------------------------------------------------------------------------------------------|\n| `OUTLINED` | `Enum` | Normal text button with clear background. Default. |\n| `TEXT` | `Enum` | DO NOT USE. Deprecated version of OUTLINED. Do not remove the field until it is confirmed not being used by any apps. |\n| `FILLED` | `Enum` | Text button with colored background. |\n| `FILLED_TONAL` | `Enum` | Normal text button with an alternative middle ground between filled and outlined buttons. |\n| `BORDERLESS` | `Enum` | Normal text button with no border. |"]]