blockly > الاتصال > getShadowDom
طريقة Connection.getShadowDom()
تعرض تمثيل XML الخاص بكتلة الظل الخاصة بالاتصال.
Signature:
getShadowDom(returnCurrent?: boolean): Element | null;
المعلمات
المعلمة |
النوع |
الوصف |
returnCurrent |
منطقي |
(اختياري) إذا كانت القيمة هي true، وكانت كتلة الظل مرتبطة حاليًا بهذا الاتصال، سيؤدي ذلك إلى ترتيب حالة ذلك الكتلة بشكل تسلسلي وإرجاعها (بحيث تكون قيم الحقول صحيحة). وبخلاف ذلك، يتم إرجاع shadowDom المحفوظة للتو. |
المرتجعات:
عنصر | فارغ
تمثيل Shadow DOM لكتلة أو قيمة خالية.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-08-29 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-08-29 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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."]]],[]]