new SiteHeader(element, options)
- Source:
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
element | HTMLElement | DOM element for component instantiation and scope | |||||||||||||||||||||||||||||||||||||||
options | Object | Properties
|
Classes
Methods
closeOverlay()
- Description:
Hides the modal language list overlay.
- Source:
destroy()
- Description:
Destroy component.
- Source:
handleClickGlobal(e)
- Description:
Handles global click events, triggered outside of the site header.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e | Event |
handleKeyboardGlobal(e)
- Description:
Handles global keyboard events, triggered outside of the site header.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e | Event |
handleKeyboardLanguage(e)
- Description:
Handles keyboard events specific to the language list.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e | Event |
handleResize()
- Description:
Trigger events on resize Uses a debounce, for performance
- Source:
init()
- Description:
Initialise component.
- Source:
openOverlay()
- Description:
Shows the modal language list overlay.
- Source:
toggleLogin(e)
- Description:
Toggles the login form.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e | Event |
toggleOverlay(e)
- Description:
Toggles the modal language list overlay.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e | Event |
toggleSearch(e)
- Description:
Toggles the search form.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
e | Event |
updateOverlay()
- Description:
Update display of the modal language list overlay.
- Source:
(static) autoInit(root) → {SiteHeader}
- Source:
Parameters:
Name | Type | Description |
---|---|---|
root | HTMLElement | DOM element for component instantiation and scope |
Returns:
An instance of SiteHeader.
- Type
- SiteHeader