Options
All
  • Public
  • Public/Protected
  • All
Menu

Module utils/dom

Index

Functions

appendTo

  • appendTo(element: undefined | HTMLElement, container: undefined | HTMLElement): void
  • Append an HTML DOM element to a container.

    Parameters

    • element: undefined | HTMLElement
    • container: undefined | HTMLElement

    Returns void

empty

  • empty(element: undefined | HTMLElement): void
  • Empty's an HTML DOM element.

    Parameters

    • element: undefined | HTMLElement

      The element you wish to empty.

    Returns void

prependTo

  • prependTo(element: undefined | HTMLElement, container: undefined | HTMLElement): void
  • Prepend an HTML DOM element to a container.

    Parameters

    • element: undefined | HTMLElement

      The DOM element to prepend.

    • container: undefined | HTMLElement

      The DOM element that is the container of the element getting prepended.

    Returns void

removeChildFrom

  • removeChildFrom(element: undefined | HTMLElement, container: undefined | HTMLElement): void
  • Removes an HTML DOM element from its bounding container.

    Parameters

    • element: undefined | HTMLElement

      The element to remove.

    • container: undefined | HTMLElement

      The DOM element that is the container of the element to remove.

    Returns void

Generated using TypeDoc