סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > RenderedConnection > disconnectInternal
שיטת RenderedConnection.disconnectinternal()
מנתקים שני בלוקים שמחוברים באמצעות החיבור הזה.
Signature:
disconnectInternal(setParent?: boolean): void;
פרמטרים
פרמטר |
סוג |
תיאור |
setParent |
בוליאני |
(אופציונלי) אם להגדיר את ההורה של הבלוק שנותק או לא, ברירת המחדל היא True. אם לא מגדירים את תבנית ההורה, צריך לוודא שפעולה שתבוצע לאחר מכן תגרום לכך, אחרת התצוגה והמודל לא יסתנכרנו. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["The `disconnectInternal()` method disconnects two blocks connected by a `RenderedConnection`."],["It optionally accepts a boolean `setParent` parameter to determine if the disconnected block's parent should be set, defaulting to true for view-model synchronization."],["If `setParent` is false, further actions must ensure the disconnected block's parent is set to maintain consistency between the view and model."]]],["The `disconnectInternal()` method of the `RenderedConnection` class disconnects two connected blocks. It accepts an optional boolean parameter, `setParent`, which defaults to `true`. This parameter determines if the parent of the disconnected block should be set. If `setParent` is set to false, an alternative action must be performed to synchronize the block's view and model. The method does not return a value.\n"]]