סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > סמלים > סמל > (בנאי)
icons.Icon.(constructor)
יצירת מופע חדש של הכיתה Icon
Signature:
constructor(sourceBlock: Block);
פרמטרים
פרמטר |
סוג |
תיאור |
sourceBlock |
חסימה |
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-04 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-04 (שעון UTC)."],[[["The `icons.Icon` class represents an icon associated with a Blockly block."],["The constructor initializes a new `Icon` instance, taking the source block as a parameter."],["This constructor is used to create visual representations linked to specific blocks within Blockly workspaces."]]],["The `Icon` class constructor creates a new `Icon` instance. It requires one parameter: `sourceBlock`, of type `Block`. This `sourceBlock` parameter is used to associate the created icon with a specific block within the Blockly environment.\n"]]