Mixin: addChildAfter

domjscomp.Renderable. addChildAfter

Add child after other element

Methods


addChildAfter(child, marker)

Add child after other element. If marker element is undefined child is appended at end
Parameters:
Name Type Description
child HTMLElement child to add
marker HTMLElement | undefined marker
Returns:
child
Type
HTMLElement | null