Class: TabbingContext

Drupal~TabbingContext(options)

new TabbingContext(options)

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.

Source:

Members

$disabledElements :jQuery

Type:
Source:

$tabbableElements :jQuery

Type:
Source:

active :bool

Type:
  • bool
Source:

(nullable) level :number

Type:
  • number
Source:

released :bool

Type:
  • bool
Source:

Methods

activate()

Activates this TabbingContext.

Source:
Fires:

deactivate()

Deactivates this TabbingContext.

Source:
Fires:

release()

Releases this TabbingContext.

Once a TabbingContext object is released, it can never be activated again.

Source:
Fires: