Class: MainMenu

MainMenu(options)

Representation of the main menu

Parameters:
Name Type Description
options Object

Configuration options

Source:

Extends

  • View

Methods

closeNavigationDrawers()

Close all open navigation drawers

Source:

isOpen() → {boolean}

Check whether the navigation drawer is open

Source:
Returns:
Type
boolean

openNavigationDrawer(drawerTypeopt)

Toggle open navigation drawer

Parameters:
Name Type Attributes Description
drawerType string <optional>

A name that identifies the navigation drawer that should be toggled open. Defaults to 'primary'.

Source:
Fires:
  • MainMenu#event:open

postRender()

Remove the nearby menu entry if the browser doesn't support geo location

Source:

registerClickEvents()

Registers events for opening and closing the main menu

Source: