रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > FieldLabel > setClass
फ़ील्ड लेबल.setClass() तरीका
फ़ील्ड के textElement_ पर लागू की गई सीएसएस क्लास को सेट करें.
हस्ताक्षर:
setClass(cssClass: string | null): void;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
cssClass |
स्ट्रिंग | शून्य |
सीएसएस क्लास का नया नाम या हटाने के लिए कोई वैल्यू नहीं. |
लौटाए जाने वाले प्रॉडक्ट:
अमान्य
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-09-12 (UTC) को अपडेट किया गया."],[[["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."]]],[]]