-
staticResponsiville.Megamenu.autoRun(){void}
-
Runs through the page and searches for elements that apply to the current
module in order to apply it to them automatically. Useful for automatically
creating elements with this module's behaviour just by setting up the
predefined classes and data attributes in HTML elements of the page.
Returns:
-
staticResponsiville.Megamenu.autoRun(){void}
-
Runs through the page and searches for elements that apply to the current
module in order to apply it to them automatically. Useful for automatically
creating elements with this module's behaviour just by setting up the
predefined classes and data attributes in HTML elements of the page.
Returns:
-
activatorMouseEnter(){void}
-
Handles the event of the mouse entering the menu activator element which is
meant to open the megamenu.
Returns:
-
activatorMouseEnter(){void}
-
Handles the event of the mouse entering the menu activator element which is
meant to open the megamenu.
Returns:
-
activatorMouseLeave(){void}
-
Handles the event of the mouse leaving the menu activator element which is
meant to close the megamenu.
Returns:
-
activatorMouseLeave(){void}
-
Handles the event of the mouse leaving the menu activator element which is
meant to close the megamenu.
Returns:
-
-
Runs right after the megamenu has been closed.
Fires:
Returns:
-
-
Runs right after the megamenu has been closed.
Fires:
Returns:
-
-
Runs right after the megamenu has opened.
Fires:
Returns:
-
-
Runs right after the megamenu has opened.
Fires:
Returns:
-
anchorHashClick(event){boolean}
-
Handles the click event on an anchor element inside the megamenu which has an
internal link, ie starts with a "#". If the anchor points to an existing
element then nothing is done, so that the page may freely scroll to the
element, otherwise false is returned, because the anchor is probably there
only as a structural menu element.
Name |
Type |
Description |
event |
Event
|
The mouse click event that fired. |
Returns:
Type |
Description |
boolean
|
Whether the event should propagate and allow default
behaviour. |
-
anchorHashClick(event){boolean}
-
Handles the click event on an anchor element inside the megamenu which has an
internal link, ie starts with a "#". If the anchor points to an existing
element then nothing is done, so that the page may freely scroll to the
element, otherwise false is returned, because the anchor is probably there
only as a structural menu element.
Name |
Type |
Description |
event |
Event
|
The mouse click event that fired. |
Returns:
Type |
Description |
boolean
|
Whether the event should propagate and allow default
behaviour. |
-
-
Runs right before the megamenu begins to closing.
Fires:
Returns:
-
-
Runs right before the megamenu begins to closing.
Fires:
Returns:
-
-
Runs just before the megamenu begins opening.
Fires:
Returns:
-
-
Runs just before the megamenu begins opening.
Fires:
Returns:
-
-
Calculates the height of the menu element dynamically at the particular time
it is being requested.
Returns:
Type |
Description |
int
|
The height of the menu element. |
-
-
Calculates the height of the menu element dynamically at the particular time
it is being requested.
Returns:
Type |
Description |
int
|
The height of the menu element. |
-
-
Calculates the width of the menu element dynamically at the particular time
it is being requested.
Returns:
Type |
Description |
int
|
The width of the menu element. |
-
-
Calculates the width of the menu element dynamically at the particular time
it is being requested.
Returns:
Type |
Description |
int
|
The width of the menu element. |
-
-
Closes the megamenu. Actually closes and shows the megamenu with the required
visual effect.
Returns:
-
-
Closes the megamenu. Actually closes and shows the megamenu with the required
visual effect.
Returns:
-
-
Disables the megamenu. It does not deactivate it, it does not close it. It
simply disables it, so it does not function any more when the necessary
trigger is fired. Useful in responsive design where the megamenu might be a
required feature in desktops but useless in mobiles.
Fires:
Returns:
-
-
Disables the megamenu. It does not deactivate it, it does not close it. It
simply disables it, so it does not function any more when the necessary
trigger is fired. Useful in responsive design where the megamenu might be a
required feature in desktops but useless in mobiles.
Fires:
Returns:
-
elementMouseEnter(){void}
-
Handles the event of the mouse entering the menu element which is meant to
ensure that that the megamenu stays open in case the user accidentally took
their mouse away from the megamenu for a moment.
Returns:
-
elementMouseEnter(){void}
-
Handles the event of the mouse entering the menu element which is meant to
ensure that that the megamenu stays open in case the user accidentally took
their mouse away from the megamenu for a moment.
Returns:
-
elementMouseLeave(){void}
-
Handles the event of the mouse leaving the menu container which is meant to
close the megamenu.
Returns:
-
elementMouseLeave(){void}
-
Handles the event of the mouse leaving the menu container which is meant to
close the megamenu.
Returns:
-
-
Enables the megamenu. It does not activate it, it does not open it. It simply
enables it, so when the necessary trigger is fired (ie the activator element
is hovered upon) then the menu is activated (which means it opens). Useful in
responsive design where the megamenu might be a required feature in desktops
but useless in mobiles.
Fires:
Returns:
-
-
Enables the megamenu. It does not activate it, it does not open it. It simply
enables it, so when the necessary trigger is fired (ie the activator element
is hovered upon) then the menu is activated (which means it opens). Useful in
responsive design where the megamenu might be a required feature in desktops
but useless in mobiles.
Fires:
Returns:
-
-
Opens the megamenu. Actually opens and shows the megamenu with the required
visual effect.
Returns:
-
-
Opens the megamenu. Actually opens and shows the megamenu with the required
visual effect.
Returns:
-
-
Sets up event handlers necessary for the object to function properly.
Returns:
-
-
Sets up event handlers necessary for the object to function properly.
Returns: