Class: tabbedPanel

tabbedPanel

new tabbedPanel() → {object}

The tab bar management Will return a sigleton of the tabbar
Source:
Returns:
The tabbar
Type
object

Methods

activateTab(source, active)

activate a tab
Parameters:
Name Type Description
source object the tab to activate or deactivate
active boolean true: active
Source:

closeTab(tabElement)

Close some Tab by its document element
Parameters:
Name Type Description
tabElement object the tab element to close this tab
Source:

createOnlineOnlyTab(subreportData, isMainTab, finishFunction)

Checks if we are in online mode before creating a tab Especially for subreport tabs as they need to be online
Parameters:
Name Type Description
subreportData object data of this tab for a subreport
isMainTab boolean if this is the main tab of the report
finishFunction function function to execute when the creation is finished
Source:

createTab(subreportData, isMainTab, isOnline, finishFunction)

Create a Tab
Parameters:
Name Type Description
subreportData object the data of the sub report
isMainTab boolean if this is the first tab
isOnline boolean if this tab is online activated
finishFunction function what to do when the tab has been created
Source:

createTabBar()

Create the TapBar if none exists - also add the main tab This will only be called once
Source:

frontMostTab() → {number}

Returns the number of the currently active tab
Source:
Returns:
currently active tab
Type
number

setCurrentTitle(title)

Sets the title of the currently front-most tab
Parameters:
Name Type Description
title string Title of the tab
Source: