Function createChildIfNotExist

  • Creates a child HTML element if it does not exist and adds it as child to the given element

    Parameters

    • element: null | HTMLElement

      the parent element

    • tagName: string

      the tag name for the new child - e.g. div

    • className: string

      a css class name for the new child

    Returns void

Generated using TypeDoc