Newline Proliferating Maniac
Introducing npm Teams! Private packages + team management tools.Learn more »

presentation-navigation

2.7.0 • Public • Published

presentation-navigation

Augmented.js Next Presentation - Navigation Components

API

Table of Contents

HamburgerMenu

Extends Presentation.AbstractToolbar

A Hamburger Menu View

Parameters

  • options

render

Render the Hamburger Menu

Returns object Returns the view context ('this')

AbstractToolbar

Extends Presentation.DecoratorView

An abstract tooldbar Component, designed to be extended

Parameters

  • options

addItem

The model property

Parameters

  • id
  • click
  • icon
  • title
  • spacer

Properties

  • model Model The model property

addItem

The initialized property

Parameters

  • id
  • click
  • icon
  • title
  • spacer

Properties

  • isInitalized boolean The initialized property

addItem

The menuItems property

Parameters

  • id
  • click
  • icon
  • title
  • spacer

Properties

  • menuItems array The initialized property

addItem

The title property

Parameters

  • id
  • click
  • icon
  • title
  • spacer

Properties

  • title string The title property

addItem

Adds an item to the menu

Parameters

  • 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)

Examples

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

addSpacer

Adds a spacer item to the menu

Examples

addSpacer();

clearMenuItems

Clear all items in the menu

select

Select an item in the menu

Parameters

getItem

Get an item in the menu

Parameters

Menu

Extends Presentation.AbstractToolbar

A Menu

Parameters

  • options

render

Renders the Menu

Returns object Returns the view context ('this')

NavigationMenu

Extends Presentation.AbstractToolbar

A Navigation Menu

Parameters

  • options

render

Renders the Menu

Returns object Returns the view context ('this')

NotificationCenter

Extends Presentation.Component.AbstractToolbar

A Notfication Center Component

Parameters

  • options

notifications

showNotification

Show the NotificationCenter

hideNotification

Hide the NotificationCenter

clearNotifications

Clear the NotificationCenter

render

Renders the Menu

Returns object Returns the view context ('this')

Toolbar

Extends Presentation.AbstractToolbar

A Toolbar View

Parameters

  • options

render

Render the Toolbar

Returns object Returns the view context ('this')

toggle

Toggle the Hamburger menu view

Iconbar

Extends AbstractToolbar

An Iconbar View

Parameters

  • options

addIcon

Adds an item to the menu

Parameters

  • id {string} The id of the itemID
  • click {string} The bound click method to call
  • icon {string} The icon name (webfont) or image src uri
  • toolTip {string} The toolTip of the itemID
  • isImageLink {boolean} Sets is icon is an image link vs web font

Examples

addIcon({"itemID", "event", "settings", "something", false });
addIcon({"itemID", "event", "/images/blah.png", "something", true });

render

Render the Toolbar

Returns object Returns the view context ('this')

Install

npm i presentation-navigation

DownloadsWeekly Downloads

1

Version

2.7.0

License

Apache-2.0

Unpacked Size

1.42 MB

Total Files

71

Last publish

Collaborators

  • avatar