...
For eg EventOnInitialize: "$ akioma.buildMainLayoutTabsSidebar(self);"
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
/** * Method executed on initilize to retrieve the desktop menu structure items to be loaded as items in Sidebar * @param {ak_sidebar} Sidebar Sidebar control */ akioma.buildMainLayoutTabsSidebar = function(Sidebar) { Sidebar.controller.forceView = 'frame'; return new Promise(resolve => { const oReturn = akioma.callServerMethod('Akioma/Swat/UiInteraction/getDesktops.p', [{ type: 'oCHAR', name: 'cDesktops' }]); Sidebar.controller.setMenu(oReturn.cDesktops); resolve(); }); }; |
...