API Docs for: 1.0.0
Show:

eLabSDK.CustomPage Class

Extends eLabSDK.Base
Module: eLabSDK

Constructor

eLabSDK.CustomPage

(
  • object
)

Parameters:

  • object Object
    • mainMenu String
    • subMenu String
    • onAfterRenderPage Function
    • renderPage Function

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');
            }
    });

Item Index