FocusableWrapper

Members

containerHTMLElement

Parent for an focusable element.

eventManagerEventManager

Instance of EventManager.

listenersCountWeakSet

An object for tracking information about event listeners attached to the focusable element.

mainElementHTMLElement

The main/operational focusable element.

Methods

focus()

Set focus to the focusable element.

getFocusableElement(){HTMLElement}

Get currently set focusable element.

Returns: {HTMLElement}

setFocusableElement(element)

Switch to the main focusable element.

Parameters:
Name Type Description
element HTMLElement

The DOM element.

useSecondaryElement()

Switch to the secondary focusable element. Used when no any main focusable element is provided.

Class: FocusableWrapper