Wagtail client-side components
    Preparing search index...

    Function setAttrs

    • Sets attributes on a given HTML element.

      Parameters

      • element: HTMLElement

        HTMLElement to set attributes on

      • attrs: Record<string, string | boolean | number>

        An object containing key-value pairs of attributes to set

      Returns void