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 |
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.
# 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 |
# init(onInit)
Init the app when ready.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
onInit |
function
|
null | Callback Javascript function. |
# setSettingsPanel(settingsPanel)
Set settings panel.
Parameters:
Name | Type | Description |
---|---|---|
settingsPanel |
Object
|
Set the settings panel. |