調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >接続 >getShadowDom
Connection.getShadowDom() メソッド
接続のシャドウ ブロックの XML 表現を返します。
署名:
getShadowDom(returnCurrent?: boolean): Element | null;
パラメータ
パラメータ |
型 |
説明 |
returnCurrent |
ブール値 |
(省略可)true で、シャドウ ブロックが現在この接続に接続されている場合、そのブロックの状態がシリアル化されて返されます(これにより、フィールド値が正しいようになります)。それ以外の場合は、保存された shadowDom が返されます。 |
戻り値:
要素 |null
ブロックまたは null の Shadow DOM 表現。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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."]]],[]]