סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > חסימה > מחיקה
שיטת Block.dispose()
צריך להשליך את הבלוק הזה.
Signature:
dispose(healStack?: boolean): void;
פרמטרים
פרמטר |
סוג |
תיאור |
healStack |
בוליאני |
(אופציונלי) אם הערך הוא True, אפשר לנסות לפצות על הפער באמצעות חיבור ההצהרה הבאה להצהרה הקודמת. אחרת, יש להשליך את כל הצאצאים של הבלוק הזה. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["The `dispose()` method permanently removes a block from the workspace."],["It optionally takes a boolean argument, `healStack`, to determine whether to connect the surrounding blocks or dispose of all the block's children."],["By default, `healStack` is false, resulting in the removal of the block and all its nested components."],["When `healStack` is true, it attempts to maintain workspace continuity by connecting the preceding and succeeding blocks."]]],[]]