sc_appmenu_add_item("Menu_Name", "Id_Item", "Id_Parent", "Label", "Aplication", "Parameters", "Icon", "Hint", "Target")
|
|
Adds an item to a menu application dynamically.
It is only possible to use this macro when there is an array created before by the macro sc_appmenu_create.
| Parameter |
Description |
| Menu_name |
Application menu name. |
| Id_item |
Menu item id. |
| Id_Parent |
Parent menu item id. For roots the null/empty value is passed. |
| Label |
Menu item description. |
| Application |
Menu item URL or application name |
| Parameters |
String with parameters to pass to the menu item application. Ex.: param1=valor;param2=valor |
| Icon |
Path to icon used in menu item. |
| Hint |
Descriptive hint to menu item. |
| Target |
Target for menu item link. ("_self" to use the same window, "_blank" to a new one and "_parent" to exit the window. |
Ex. 1: Creates a menu named menu_main. sc_appmenu_create('menu_main');
Ex. 2: Adds a on the menu_main the the item_1 named Category. sc_appmenu_add_item('menu_main','item_1','','Category','');
Ex. 3: Adds a on the menu_main (item_2) the item_1 name Category linked to the form_category passing a few parameters. sc_appmenu_add_item('menu_main','item_2','item_1','Category Form','form_category','param1=value;param2=value');
|
Macro Scope
|
Menu application
|
Tree menu
|
allMacros onApplicationInit onLoad
|
allMacros onApplicationInit onLoad
|
|