Function removeElement

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

    Method

    removeElement

    Parameters

    • e: Element

      Element to remove

    • Optional hideParentWhenNoChild: boolean

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

    Returns void