Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

getAttr

  • getAttr(element: HTMLElement | Element, attributeName: string, fallback?: any): any
  • Returns the value of one attribute of the given element

    Parameters

    • element: HTMLElement | Element

      the element to read the attribute on

    • attributeName: string

      the name of the attribute to look up (e.g. class)

    • Optional fallback: any

      Optional fallback to be returned when the attribute was not found

    Returns any

Generated using TypeDoc