|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--DHTMLSuite.tabView
Purpose of class: Tab view class-transfors plain HTML into tabable layers.
(See demo 1 and demo 2)
Defined in dhtml-suite-for-applications.js
Author: Alf Magne Kalleland(www.dhtmlgoodies.com)
Version: 1.0
Field Summary | |
Object |
ajaxObjects
|
Object |
callbackOnTabSwitch
|
Object |
closeButtons
|
Object |
dynamicContentObj
|
Object |
height
|
Object |
initActiveTabIndex
|
Object |
layoutCSS
|
Object |
maxNumberOfTabs
|
Object |
refActiveTabContent
|
Object |
strictDocType
|
Object |
tabTitles
|
Object |
textPadding
|
Object |
width
|
Constructor Summary | |
DHTMLSuite.tabView
()
|
Method Summary | |
void
|
addContentToTab(tabLabel,filePath)
Add content to a tab dynamically. |
Object
|
createNewTab(parentId,tabTitle,tabContent,tabContentUrl,closeButton)
Creates new tab dynamically |
void
|
deleteTab(tabLabel,tabIndex)
Delete a tab |
Object
|
displayATab(tabLabel,tabIndex)
Display a tab manually |
Object
|
getMaximumNumberOfTabs()
Return maximum number of tabs |
Object
|
getReferenceToDivElementById(idOfTab)
Returns a reference to the div element of a tab. |
Object
|
getReferenceToDivElementByTitle(tabTitle)
Returns a reference to the div element of a tab. |
Integer tabIndex=Index of active tab(0=first tab)
|
getTabIndex()
Return index of active tab |
Object
|
getTabTitle()
return active tab title |
void
|
init()
Initialize the script |
void
|
setCallbackOnTabSwitch(callbackOnTabSwitch)
Set callback on tab switch |
void
|
setCloseButtons(closeButtons)
Specify which tabs that should have close buttons |
void
|
setHeight(newHeight)
Set height of tab view on tabs |
void
|
setIndexActiveTab(indexOfNewActiveTab)
Set index of initially active tab |
void
|
setMaximumTabs(maximumNumberOfTabs)
Set maximum number of tabs |
void
|
setParentId(idOfParentHTMLElement)
Set padding on tabs |
void
|
setTabTitles(titleOfTabs)
Set title of tabs |
void
|
setWidth(newWidth)
Set width of tab view |
Field Detail |
Object ajaxObjects
Object callbackOnTabSwitch
Object closeButtons
Object dynamicContentObj
Object height
Object initActiveTabIndex
Object layoutCSS
Object maxNumberOfTabs
Object refActiveTabContent
Object strictDocType
Object tabTitles
Object textPadding
Object width
Constructor Detail |
DHTMLSuite.tabView()
Method Detail |
void addContentToTab(tabLabel,filePath)
String
- tabLabel=Label of tab to delete(Optional)
String
- filePath=Path to file you want to show inside the tab.
Object createNewTab(parentId,tabTitle,tabContent,tabContentUrl,closeButton)
String
- parentId=Id of tabset
String
- tabTitle=Title of new tab
String
- tabContent=Content of new tab(Optional)
String
- tabContentUrl=Url to content of new tab(Optional)- Ajax is used to get this content
void deleteTab(tabLabel,tabIndex)
String
- tabLabel=Label of tab to delete(Optional)
Int
- tabIndex=Index of tab to delete(Optional)
Object displayATab(tabLabel,tabIndex)
String
- tabTitle=Label of tab to show(Optional)
Int
- tabIndex=Index of tab to show(Optional)
Object getMaximumNumberOfTabs()
Object getReferenceToDivElementById(idOfTab)
String
- idOfTab=id of tab
Object getReferenceToDivElementByTitle(tabTitle)
String
- tabTitle=Title of tab
Integer tabIndex=Index of active tab(0=first tab) getTabIndex()
Object getTabTitle()
void init()
void setCallbackOnTabSwitch(callbackOnTabSwitch)
String
- callbackOnTabSwitch=Name of function to execute when the user switches to a different tab.
void setCloseButtons(closeButtons)
Array
- closeButtons=Array of true or false
void setHeight(newHeight)
String
- Height of tab view
void setIndexActiveTab(indexOfNewActiveTab)
Int
- indexOfNewActiveTab=Index of active tab(0=first tab)
void setMaximumTabs(maximumNumberOfTabs)
Int
- maximumNumberOfTabs=Maximum number of tabs
void setParentId(idOfParentHTMLElement)
String
- idOfParentHTMLElement=id of parent div
void setTabTitles(titleOfTabs)
Array
- titleOfTabs=Title of tabs
void setWidth(newWidth)
String
- Width of tab view
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |