TabbingContext

Drupal~ TabbingContext

new TabbingContext(options)

Source:
Stores a set of tabbable elements. This constraint can be removed with the release() method.
Parameters:
Name Type Description
options object A set of initiating values
Properties
Name Type Description
level number The level in the TabbingManager's stack of this tabbingContext.
$tabbableElements jQuery The DOM elements that should be reachable via the tab key when this tabbingContext is active.
$disabledElements jQuery The DOM elements that should not be reachable via the tab key when this tabbingContext is active.
released boolean A released tabbingContext can never be activated again. It will be cleaned up when the TabbingManager unwinds its stack.
active boolean When true, the tabbable elements of this tabbingContext will be reachable via the tab key and the disabled elements will not. Only one tabbingContext can be active at a time.
trapFocus boolean When true, focus is trapped within the tabbable elements, i.e. focus will remain within the browser.

Members

$disabledElements :jQuery

Source:
Type:

$tabbableElements :jQuery

Source:
Type:

active :boolean

Source:
Type:
  • boolean

(nullable) level :number

Source:
Type:
  • number

released :boolean

Source:
Type:
  • boolean

trapFocus :boolean

Source:
Type:
  • boolean

Methods

activate()

Source:
Activates this TabbingContext.
Fires:

deactivate()

Source:
Deactivates this TabbingContext.
Fires:

release()

Source:
Releases this TabbingContext. Once a TabbingContext object is released, it can never be activated again.
Fires: