Class: HamburgerMenu

.Presentation.Component. HamburgerMenu


new HamburgerMenu()

A Hamburger Menu View

Source:

Extends

  • Augmented.Presentation.AbstractToolbar

Members


<static> title

The title property

Properties:
Name Type Description
title string

The title property

Source:

Methods


<static> addItem - Adds an item to the menu(id, click, icon, title, spacer)

Parameters:
Name Type Description
id string

The id of the itemID

click string

The bound click method to call

icon string

The icon name (webfont)

title string

The title of the itemID

spacer boolean

Sets a spacer item vs text (not clickable)

Source:
Examples
addItem({"itemID", "event", "web", "something", false });
addItem({"space", null, null, null, true });

<static> addSpacer - Adds a spacer item to the menu()

Source:
Example
addSpacer();

<static> hamburger()

Toggle the Hamburger menu view - deprecated

Deprecated:
  • Yes
Source:

<static> initialize(options)

Initialize the Hamburger menu view

Parameters:
Name Type Description
options object

The view options

Source:
Returns:

Returns true on success of initalization

Type
boolean

<static> render Renders the Hamburger()

Render the Hamburger Menu

Source:
Returns:

Returns the view context ('this')

Type
object

<static> toggle()

Toggle the Hamburger menu view

Source: