Constructor
new ve.ui.TabIndexScope([config])
#
TabIndex Scope container constructor
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
optional |
Configuration options Properties:
|
- Source:
Methods
getElementsInRoot() → {Array.<HTMLElement>}
#
Build a list of elements in the current root, in tab order
This mimics browser behavior: fetch focusable elements, sort by [tabIndex, DOM order]
- Source:
Returns:
list of elements in the order they should be tabbed through
- Type
- Array.<HTMLElement>
Build a list of elements in the current root, in tab order
This mimics browser behavior: fetch focusable elements, sort by [tabIndex, DOM order]
onRootKeyDown(e)private
#
setTabRoot($root)
#
Set the current root element for tabbing
Parameters:
| Name | Type | Description |
|---|---|---|
$root |
jQuery | root element to scope tabIndex within |
- Source:
teardown()
#
Teardown tabbable elements manager
- Source: