• Removes an element from DOM in a safe way, cleaning all its controls (including descendants).

    Parameters

    • e: Element

      Element to remove

    • Optional hideParentWhenNoChild: boolean

      Whether to hide the element's parentNode if it contains no additional children.

    Returns void

    Method

    removeElement