-
addChild(widget, insertIndex)
-
Parameters:
Name |
Type |
Description |
widget |
object
|
The widget to add as the new child |
insertIndex |
integer
|
The index at which to insert the child |
- Source:
-
-
Callback implementation following instantiation of all of the widgets defined in by the "widgets"
instance property.
Parameters:
Name |
Type |
Description |
widgets |
array
|
An array of the instantiated widgets (as defined by the widgets instance property). |
- Source:
-
focusNext()
-
This extends the super class implementation to allow keyboard navigation to traverse groups. If the
current focused child is the last element in the current group then the first item in the next group
will be focused (rather than iterating back around to the first item in the current group).
- Source:
-
focusPrev()
-
This extends the super class implementation to allow keyboard navigation to traverse groups. If the
current focused child is the first element in the current group then the last item in the previous group
will be focused (rather than iterating back around to the last item in the current group).
- Source:
-
postCreate()
-
Updates the default template with some additional CSS class information and then processes
the widgets supplied.
- Source:
-
removeChild(widget)
-
Extends the default implementation to call the "setFirstAndLastMarkerClasses" classes after
the child has been removed.
Parameters:
Name |
Type |
Description |
widget |
object
|
The child to remove |
- Source:
-
setFirstAndLastMarkerClasses()
-
This function sets the class "first-focusable-entry" to the first child widget that is focusable and
"last-focusable-entry" to the last child widget that is focusable (the same child can be both). The purpose
of these markers is to help keyboard users to navigate between multiple groups in a menu.
It also adds "first-entry" and "last-entry" as well for use in styling.
- Source: