eLabSDK.CustomPage Class
Constructor
eLabSDK.CustomPage
        
            (
    
    - 
                        object
Parameters:
- 
                        objectObject- 
                                    mainMenuString
- 
                                    subMenuString
- 
                                    onAfterRenderPageFunction
- 
                                    renderPageFunction
 
- 
                                    
Example:
  new eLabSDK.CustomPage({
            rootVar: 'myCustomAddOnRootVar',
            pageID: 'page1', // Optional pageID. Mandatory if you need to create more then 1 custom page
            mainMenu: 'My Main Menu', // Mandatory Label for the main ribbon menu item. Use existing if needed, or create your own
            subMenu: 'My Sub Menu', // Optional subMenu. If not provided, the mainMenu button will be triggering the renderPage()
            renderPage: function(){
                return '<strong>Hello World</strong>';
            },
            onAfterRenderPage: function(){
                console.log('ready with rendering HTML to DOM');
            }
    });