Namespace: topnav

sh.libs.topnav

Methods

(static) init(idopt) → {array}

Initialize the component

Parameters:
Name Type Attributes Description
id external:jQuery | string <optional>
Selector or jQuery element
Source:
Returns:
All targeted elements
Type
array

(static) toggleSmallNavigation(id) → {external:jQuery}

Toggle visibility of small navigation. This is only visible for small viewports

Parameters:
Name Type Description
id external:jQuery | string Selector or jQuery element
Source:
Returns:
Type
external:jQuery

(static) toggleSmallSecondary(id) → {external:jQuery}

Toggle visibility for secondary navigation. This is only visible for small viewports

Parameters:
Name Type Description
id external:jQuery | string Selector or jQuery element
Source:
Returns:
Type
external:jQuery