Home Reference Source
import TabPanel from './ui/elements/tabpanel/tabpanel.js'
public class | source

TabPanel

Extends:

Events → TabPanel

a tab panel, that can contain tabs

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

id: *

public
Private Members
private

_dynCmds: *[]

private
private

_eleId: *

private
private

_log: *

private

_tabs: *[]

Method Summary

Public Methods
public

activateTab(id: *)

public

activateTabByName(name: *): *

public

addIframeTab(title: *, url: *, options: *, userInteraction: *): *

public

addTab(tab: *, activate: *): *

public

closeTab(id: *)

public
public
public

getNumTabs(): *

public
public

getTabByDataId(dataId: *): *

public

getTabById(id: *): *

public

getTabByTitle(title: *): *

public

getUniqueTitle(title: *): *

public
public
public
public

setChanged(id: *, changed: *)

public

setTabNum(num: *)

public
public

Inherited Summary

From class Events
public

off: *

public

on: *

private
private
private

_log: *

private

_logEvents: boolean

private

_logName: string

public

addEventListener(which: *, cb: *, idPrefix: string): string

add event listener

public

emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *)

emit event

public

hasEventListener(id: *, cb: *): boolean

check event listener registration

public

hasListenerForEventName(eventName: *): boolean

check event listener by name

public

logEvents(enabled: boolean, logName: string)

enable/disable logging of events for the class

public

removeEventListener(id: *, cb: *)

rempve event listener registration

Public Constructors

public constructor() source

Override:

Events#constructor

Public Members

public id: * source

public showTabListButton: boolean source

Private Members

private _dynCmds: *[] source

private _eleContentContainer: * source

private _eleId: * source

private _eleTabPanel: * source

private _log: * source

Override:

Events#_log

private _tabs: *[] source

Public Methods

public activateTab(id: *) source

Params:

NameTypeAttributeDescription
id *

public activateTabByName(name: *): * source

Params:

NameTypeAttributeDescription
name *

Return:

*

public addIframeTab(title: *, url: *, options: *, userInteraction: *): * source

Params:

NameTypeAttributeDescription
title *
url *
options *
userInteraction *

Return:

*

public addTab(tab: *, activate: *): * source

Params:

NameTypeAttributeDescription
tab *
activate *

Return:

*

public closeTab(id: *) source

Params:

NameTypeAttributeDescription
id *

public cycleActiveTab(): * source

Return:

*

public getActiveTab(): * source

Return:

*

public getNumTabs(): * source

Return:

*

public getSaveButton(): * source

Return:

*

public getTabByDataId(dataId: *): * source

Params:

NameTypeAttributeDescription
dataId *

Return:

*

public getTabById(id: *): * source

Params:

NameTypeAttributeDescription
id *

Return:

*

public getTabByTitle(title: *): * source

Params:

NameTypeAttributeDescription
title *

Return:

*

public getUniqueTitle(title: *): * source

Params:

NameTypeAttributeDescription
title *

Return:

*

public loadCurrentTabUsersettings() source

public saveCurrentTabUsersettings() source

public scrollToActiveTab() source

public setChanged(id: *, changed: *) source

Params:

NameTypeAttributeDescription
id *
changed *

public setTabNum(num: *) source

Params:

NameTypeAttributeDescription
num *

public updateHtml() source

public updateSize() source