new Menu
Main menu rendering
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
engine |
Simplicite.UI.Engine | Main controller |
view |
Simplicite.UI.View.Main | View services |
- Source:
- menu.js, line 14
Methods
-
getMenu
-
Main menu
- Source:
- menu.js, line 26
-
init
-
Init the main menu, use the engine.clickMenu handler
Parameters:
Name Type Description p
object UI parameters - Source:
- menu.js, line 36
-
isMenuMax
-
Is menu maximized on the left side ?
- Source:
- menu.js, line 255
-
isMenuMin
-
Is menu minimized on the left side ?
- Source:
- menu.js, line 248
-
menuMax
-
Maximize the menu on the left side
- displays domain icons and labels
- accordion sub-menus
- Source:
- menu.js, line 285
-
menuMin
-
Minimize the menu on the left side
- displays only domain icons
- popup the sub-menus over the screen
- Source:
- menu.js, line 267
-
menuToggle
-
Toggle the main menu on the left side
Parameters:
Name Type Description e
object optional event sign
number positive:show, negative:hide - Source:
- menu.js, line 321
-
subMenuMax
-
Show a sub-menu
Parameters:
Name Type Description m
jQuery menu item (li element with .sub-menu child) - Source:
- menu.js, line 310
-
subMenuMin
-
Hide a sub-menu
Parameters:
Name Type Description m
jQuery menu item (li element with .sub-menu child) - Source:
- menu.js, line 300
-
treeview
-
Object treeview rendering
Parameters:
Name Type Description ctn
jquery container o
object business object (where o.item is a tree) id
string row Id tv
object treeview definition { name } p
object options cbk
function optional callback - Source:
- menu.js, line 362