API.ui Class
API for Wanaplan User Interface.
Constructor
API.ui
()
Item Index
Methods
Methods
addMainMenuItem
(
-
item
-
[menuPath]
Adds an item to the main menu.
MenuItem format :
{
title : _("title"),
icon : "pathToIcon",
action : "eventName",
index: 100,
items : [subitem1, subitem2]
}
addSubMenuItem
(
-
item
-
[menuPath]
Adds an item to the sub menu.
addTopMenuItem
(
-
item
-
[menuPath]
Adds an item to the top menu.
getWidgetContainer
()
Object
Returns a DOM element containing the UI widgets, which you can manipulate
Returns:
Object:
The DOM Element containing widgets
removeMainMenuItem
(
-
item
-
[menuPath]
Removes an item from the main menu.
removeSubMenuItem
(
-
item
-
[menuPath]
Removes an item from the sub menu.