Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils"

Index

Functions

Const attributesToArray

  • attributesToArray(map: NamedNodeMap): Attr[]
  • Parameters

    • map: NamedNodeMap

    Returns Attr[]

Const findFirstFocusableDescendant

  • findFirstFocusableDescendant(container: Element): null | Element
  • Parameters

    • container: Element

    Returns null | Element

Const generateCaughtError

  • generateCaughtError<T>(message: string, defaultData: T): T
  • Type parameters

    • T

    Parameters

    • message: string
    • defaultData: T

    Returns T

Const htmlCollectionToArray

  • htmlCollectionToArray(list: HTMLCollection): Element[]
  • Parameters

    • list: HTMLCollection

    Returns Element[]

Const isOrContains

  • isOrContains(container: Element, element: Element): boolean
  • Parameters

    • container: Element
    • element: Element

    Returns boolean

Const switchAElementToButton

  • switchAElementToButton(tabElement: Element): Element
  • Parameters

    • tabElement: Element

    Returns Element

Const updateAndDispatch

  • updateAndDispatch(element: Element, attribute: string, targetState: string | null): void
  • Parameters

    • element: Element
    • attribute: string
    • targetState: string | null

    Returns void

Const updateState

  • updateState(element: Element, attribute: string, targetState: string | null, callback?: function | null): void
  • Parameters

    • element: Element
    • attribute: string
    • targetState: string | null
    • Default value callback: function | null = null

    Returns void

Generated using TypeDoc