Members
-
container :external:Element
-
Details
-
tabs :Map.<string, TabEntry>
-
Details
Methods
-
addTab( tab )
-
Parameters
Name Type Description tabTabDefinition The new tab.
Details
-
next()
-
Description
Activate the next tab.
Details
-
prev()
-
Description
Activate the previous tab.
Details
-
goto( name )
-
Parameters
Name Type Description namestring Name of the tab to activate.
Details
-
<private> installStyle()
-
Description
Installs basic CSS styles for the UI.
Details
-
<private> getTabControls() → {Array.<Element>}
-
Description
Get the tab controls currently in the container.
Returns
Details
-
<private> switchTab( direction )
-
Description
Switch to an adjacent tab.
Parameters
Name Type Description directionnumber Either 1 or -1.
Fires
Details
-
<private> createInput( name, idName ) → {external:Element}
-
Parameters
Name Type Description namestring Human readable name for tab.
idNamestring Normalized to be CSS class friendly.
Returns
Details
-
<private> createLabel( name, input, idName ) → {external:Element}
-
Parameters
Name Type Description namestring Human readable name for tab.
inputexternal:Element Input element associated with this label.
idNamestring Normalized to be CSS class friendly.
Returns
Details
-
<private> createPanel( name, idName, content ) → {external:Element}
-
Parameters
Name Type Description namestring Human readable name for tab.
idNamestring Normalized to be CSS class friendly.
contentTabContent Initial content.
Returns
Details
-
<private> onChange( panel, evt )
-
Description
Event handler for change events. When the active tab changes, this will resend an 'expose' event to the associated panel.
Parameters
Name Type Description panelexternal:Element The panel associated with this tab.
evtEvent The original change event.
Fires
Details
-
<private> installControls()
-
Description
Installs navigational control elements.
Details
Type Definitions
-
TabEntry
-
Properties
Name Type Description namestring Tab name.
labelexternal:Element Tab label, so CSS can be applied.
panelexternal:Element Tab panel, so content can be updated.
Details
-
TabContent
-
Description
A string of HTML or a prebuilt Element.
Details
-
TabDefinition
-
Properties
Name Type Description namestring Tab name.
contentTabContent Initial content.
Details