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 bool A released tabbingContext can never be activated again. It will be cleaned up when the TabbingManager unwinds its stack.
active bool 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 bool 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 :bool

Source:
Type:
  • bool

(nullable) level :number

Source:
Type:
  • number

released :bool

Source:
Type:
  • bool

trapFocus :bool

Source:
Type:
  • bool

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: