@blinkk/degu
    Preparing search index...

    Function setFocusableElementsToTabIndex

    • Gets all focusable elements within an element and sets it to the given tabindex. This method is paired with "unsetFocusableElementsToTabIndex" to undo this action.

      # Set all focusable elements to -1 tabindex.
      dom.setFocusableElementsToTabIndex(parentElement, -1);

      # Later undo this effect. Focusable elements revert to their original tab index.
      dom.unsetFocusableElementsToTabIndex(parentElement);

      Parameters

      • element: HTMLElement
      • tabindex: number

      Returns void