Class

App

App(id, settingsopt)

This is the main class to create an application.

All applications has the same structure: App → Tabs → Sections → Widgets

Constructor

# new App(id, settingsopt)

The default settings configuration is:

{
  firstTabIndex: 0,   // First tab index
  transition: {
    effect: 'none',   // Effect: 'fade', 'slide' or 'none'.
    duration: 0       // Effect duration in milliseconds.
  },
  onInit: null        // function to call on initialize the application.
}
Parameters:
Name Type Attributes Default Description
id string

Id of the aplication

settings Object <optional>
{}

Settings object

View Source App.js, line 19

Methods

# _installLoadPageProxy()

Proxy the baseWeb.baseWebUtils.loadPage function. This function is used by the web whenever the user changes from one page to another and it's ideal to install code to free resources like freeing datatables or setIntervals.

View Source App.js, line 129

# addTab(tab)

Add a tab to the aplication. This method add a tab to the TabsBar object of the App.

Parameters:
Name Type Description
tab Tab

The tab to add

View Source App.js, line 96

# init(onInit)

Init the app when ready.

Parameters:
Name Type Default Description
onInit function null

Callback Javascript function.

View Source App.js, line 105

# setSettingsPanel(settingsPanel)

Set settings panel.

Parameters:
Name Type Description
settingsPanel Object

Set the settings panel.

View Source App.js, line 75