blockly > FieldLabel > setClass
طريقة FieldLabel.setClass()
اضبط فئة CSS التي يتم تطبيقها على الحقل textElement_.
Signature:
setClass(cssClass: string | null): void;
المعلمات
المعلمة |
النوع |
الوصف |
cssClass |
سلسلة | فارغ |
اسم فئة CSS الجديد أو قيمة فارغة لإزالته. |
المرتجعات:
فراغ
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-09-12 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `FieldLabel.setClass()` method allows you to dynamically change the CSS class applied to the text element of a field label within Blockly."],["This method accepts a single parameter: `cssClass`, which can be a string representing the new CSS class name or null to remove any existing class."],["Calling `FieldLabel.setClass()` updates the visual appearance of the field label by applying or removing a specific CSS class."]]],[]]