סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > עיצוב > getComponentStyle
שיטת Theme.getComponentStyle()
הפונקציה מקבלת את הסגנון של רכיב נתון בממשק המשתמש של Blockly. אם ערך הסגנון הוא מחרוזת, אנחנו מנסים למצוא את הערך של הפניות בעלות שם.
Signature:
getComponentStyle(componentName: string): string | null;
פרמטרים
פרמטר |
סוג |
תיאור |
componentName |
מחרוזת |
שם הרכיב. |
החזרות:
מחרוזת | null
ערך הסגנון.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-10-15 (שעון UTC).
[null,null,["עדכון אחרון: 2024-10-15 (שעון UTC)."],[[["The `getComponentStyle` method retrieves the style for a specific Blockly UI component based on its name."],["It handles style values that are strings, attempting to resolve any named references within them."],["If a style is found for the given component name, it's returned; otherwise, `null` is returned."]]],[]]