new Drawer(headerEl)
Class constructor.
Methods
Links
new DropDown(headerEl)
Class constructor
Methods
-
handleEvent(event)
- (instance) Event Handler
-
isDrawer
- (instance) Checks if primary nav is a drawer
This boolean will change the drop down behaviour.
-
reset
- (instance) Returns nav items to their original collapsed state,
items which contain links with the attribute `aria-current`
set to true remain expanded.
-
isExpanded
- (static) Checks whether nav menu is expanded
-
expand
- (static) Expands closed nav menu
-
position
- (static) Changes nav menu position relative to the window
-
collapse
- (static) Collapses open nav menu
-
collapseAll
- (static) Collapses all open nav menus
-
expandAll
- (static) Expands all open nav menus
-
getCurrent
- (static) Returns items which contain an anchor
with the attribute `aria-current` set to true.
Links
Drawer#handleEvent(event)
Instance Method
Event Handler
Links
Drawer#render
Instance Method
Drawer rendering
Links
Drawer#toggleDrawer
Instance Method
Drawer hide/show functionality
Links
DropDown#handleEvent(event)
Instance Method
Event Handler
Links
DropDown#isDrawer
Instance Method
Checks if primary nav is a drawer
This boolean will change the drop down behaviour.
Links
DropDown#reset
Instance Method
Returns nav items to their original collapsed state,
items which contain links with the attribute aria-current
set to true remain expanded.
Links
DropDown.isExpanded
Static Method
Checks whether nav menu is expanded
Links
DropDown.expand
Static Method
Expands closed nav menu
Links
DropDown.position
Static Method
Changes nav menu position relative to the window
Links
DropDown.collapse
Static Method
Collapses open nav menu
Links
DropDown.collapseAll
Static Method
Collapses all open nav menus
Links
DropDown.expandAll
Static Method
Expands all open nav menus
Links
DropDown.getCurrent
Static Method
Returns items which contain an anchor
with the attribute aria-current
set to true.
Links