blockly > utils > dom > insertAfter

utils.dom.insertAfter() function

Insert a node after a reference node. Contrast with node.insertBefore function.

Signature:

export declare function insertAfter(newNode: Element, refNode: Element): void;

Parameters

Parameter Type Description
newNode Element New element to insert.
refNode Element Existing element to precede new node.

Returns:

void