קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > IIcon > initView
שיטת IIcon.initView()
יוצרת את רכיבי ה-SVG עבור הסמל שיופיע בבלוק.
Signature:
initView(pointerdownListener: (e: PointerEvent) => void): void;
פרמטרים
פרמטר |
סוג |
תיאור |
pointerdownListener |
(e: PointerEvent) => ריק |
מעבד אירוע שחייב להיות מצורף לרכיב ה-SVG ברמה הבסיסית על ידי הטמעה של initView . משמש את מערכת התנועות של Blockly לטיפול תקין בקליקים ובגרירה. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[],["The `initView` method, part of the `IIcon` interface, is responsible for generating the SVG elements of an icon on a block. It requires a `pointerdownListener` function as a parameter. This listener must be added to the root SVG element and is used by Blockly for click and drag event handling. The method returns no value.\n"],null,[]]