Navigation

Component Navigation
Source:
Parameters:
Name Type Description
$ jQuery Instance of jQuery
Returns:
List of navigation methods
Type
Object

Members

(static) api :Object.<Methods>

Source:
This object stores all public api methods
Type:
  • Object.<Methods>

Methods

(static) init()

Source:
init method calls initInstance method in a loop for each navigation component on a page.
For navigation with set mobile-nav class calls toggleIcon method

(static) initInstance(component)

Source:
initIstance method.
If added navigation-main class called dropDownNavigation, mobileNavigation methods.
If added navigation-mobile class called only mobileNavigation,
Parameters:
Name Type Description
component jQuery Root DOM element of navigation component wrapped by jQuery