goldies
    Preparing search index...

    Function getDataAttributes

    • Returns all HTML data-* attributes attached to an element.

      Parameters

      • $element: HTMLElement

      Returns DOMStringMap

      dataset

      Can be used as promise:
      const dataAttributes = getDataAttributes($el)

      Use element.dataset, which this returns. Will be removed in goldies 6.0.