Constructor
new DisclosureMenuItem(options)
- Description:
Constructs the menu item.
- Source:
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | The options for generating the menu item. Properties
|
Extends
Members
(protected) _dom :Object.<HTMLElement>
- Description:
The DOM elements within the menu item.
- Source:
- Overrides:
Properties:
Name | Type | Description |
---|---|---|
item |
HTMLElement | The menu item. |
link |
HTMLElement | The menu item's link. |
The DOM elements within the menu item.
Type:
- Object.<HTMLElement>
(protected) _elements :Object.<BaseMenu, BaseMenuToggle>
- Description:
The declared accessible-menu elements within the menu item.
- Source:
- Overrides:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
parentMenu |
BaseMenu | The menu containing this menu item. |
|
childMenu |
BaseMenu |
<nullable> |
The menu contained within this menu item. |
toggle |
BaseMenuToggle |
<nullable> |
The menu toggle within this menu item that controls the |
The declared accessible-menu elements within the menu item.
Type:
- Object.<BaseMenu, BaseMenuToggle>
_submenu :boolean
- Description:
A flag marking a submenu item.
- Source:
- Overrides:
A flag marking a submenu item.
Type:
- boolean
(readonly) dom :Object.<HTMLElement>
- Description:
The DOM elements within the menu item.
- Source:
- Overrides:
- See:
-
- _dom
The DOM elements within the menu item.
Type:
- Object.<HTMLElement>
(readonly) elements :Object.<BaseMenu, BaseMenuToggle>
- Description:
The declared accessible-menu elements within the menu item.
- Source:
- Overrides:
- See:
-
- _elements
The declared accessible-menu elements within the menu item.
Type:
- Object.<BaseMenu, BaseMenuToggle>
(readonly) isSubmenuItem :boolean
- Description:
A flag marking a submenu item.
- Source:
- Overrides:
- See:
-
- _submenu
A flag marking a submenu item.
Type:
- boolean
Methods
initialize()
- Description:
Initialize the menu item.
- Source:
- Overrides:
focus()
- Description:
Focuses the menu item's link if the parent menu's shouldFocus value is
true
.
- Source:
- Overrides:
blur()
- Description:
Blurs the menu item's link if the parent menu's shouldFocus value is
true
.
- Source:
- Overrides: