kit
    Preparing search index...

    Function getDataAttr

    • Get data attribute

      Parameters

      • element: HTMLElement
      • attribute: string

        The name of the data-{attr}

      Returns string | null