IrisJS

Namespace: menu

menu

Methods

(static) registerMenu(menuName)

Function to register a new menu

Parameters:
Name Type Description
menuName string

the name of the new menu

Source:

Function to register a menu item as part of a menu

It is possible to nest menu items by providing the path of the desired parent menu item that the new item should be inserted under.

Parameters:
Name Type Attributes Description
menuName string

the name of the menu under which this item should be saved

parentPath string <optional>

optional; if this menu item has a parent, the path that the parent item links to

path string

the path to which this menu item links

title string

the title of this menu item displayed to the user

weight number

the weight of this menu item. Lower weights are displayed first.

Source: