blockly > Connessione > setShadowDom
Metodo Connection.setShadowDom()
Modifica il blocco ombra della connessione.
Firma:
setShadowDom(shadowDom: Element | null): void;
Parametri
Parametro |
Tipo |
Descrizione |
shadowDom |
Elemento | null |
Rappresentazione DOM di un blocco o nulla. |
Resi:
null
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2024-08-22 UTC.
[null,null,["Ultimo aggiornamento 2024-08-22 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"]]