סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > חיבור > getShadowDom
שיטת Connection.getShadowDom()
מחזירה את ייצוג ה-XML של בלוק הצללית של החיבור.
Signature:
getShadowDom(returnCurrent?: boolean): Element | null;
פרמטרים
פרמטר |
סוג |
תיאור |
returnCurrent |
בוליאני |
(אופציונלי) אם True, ובלוק ההצללה מחובר כרגע לחיבור הזה, הפעולה הזו הופכת את מצב הבלוקים בסדרה ומחזירה אותו (כך שערכי השדה יהיו נכונים). אחרת, השדה shadowDom שנשמר פשוט מוחזר. |
החזרות:
רכיב | null
ייצוג צל של DOM של בלוק או של null.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-29 (שעון UTC)."],[[["The `Connection.getShadowDom()` method returns the XML representation of a connection's shadow block, which is used to store and manage the block's structure and data."],["You can optionally pass `returnCurrent: true` to get the serialized state of the currently attached shadow block, ensuring field values are up-to-date; otherwise, the saved shadow DOM is returned."],["The method returns an `Element` containing the shadow DOM, or `null` if no shadow DOM is associated with the connection."]]],[]]