blockly > Connection > setShadowDom
Connection.setShadowDom() method
Changes the connection's shadow block.
Signature:
setShadowDom(shadowDom: Element | null): void;
Parameters
Parameter |
Type |
Description |
shadowDom |
Element | null |
DOM representation of a block or null. |
Returns:
void
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["The `Connection.setShadowDom()` method updates the shadow block associated with a given connection."],["It accepts a single argument, `shadowDom`, which is either an Element representing the DOM of the shadow block or null."],["Calling this method effectively changes the visual representation of the connection's shadow block."]]],["The `setShadowDom` method, part of the Connection class, modifies a connection's shadow block. It accepts a single parameter, `shadowDom`, which represents the DOM structure of a block or can be null. This method updates the connection's shadow block to the provided DOM element or removes it if null is provided. It returns nothing (void) after execution.\n"]]