Warning
This technique uses custom code, how to write code is not included in our support! For non-programmer users, please use the Dynamic Menu addons
- Go to (IMAB) Globals, then click Add New Global Button or Edit old Global code
- Fill in the Prefix field with the name Update Menu
-
Fill in the Initialize Component Function field with this code:
this.updateMenu();
-
and fill in the Other Component Function field with this code:
updateMenu(){ //clear all item this.appMenus = []; //example item divider this.appMenus[0] = { "item_color_icon_left": "danger", "item_type": "title", "item_icon_left":"airplane-outline", "item_label" : "Example Menu" , "item_link" : "" }; //example item link to page this.appMenus[1] = { "item_color_icon_left": "danger", "item_type":"inlink", "item_icon_left":"home", "item_label" : "Home" , "item_link" : "/home" } ; //example item link to playstore this.appMenus[2] = { "item_color_icon_left": "danger", "item_type":"playstore", "item_icon_left":"logo-google-playstore", "item_label" : "Rate This App" , "item_link" : "" } ; }
Last edit: 2021-10-29 10:48:16