tab


Name spacerialto.widget
FILErialtoEngine\javascript\components\containers\tab.js
NAMEtab
INHERITSAbstractContainer
VERSION0.86
update
DESCRIPTIONThis object create a tabFolder



CONSTRUCTOR


NameTypeDescriptionDefault
NameStringName of the HTML elementtab
topintTop position (in pixel)0
leftintLeft position (in pixel)0
widthStringWidth (in pixel or %)1OO%
heightStringHeight (in pixel or %)1O0%
parentString or referenceReference of an HTML or a javascript element parent of the tab html element
widthTabNameintTab Size
autoRedimTabbooleanTrue enables the automatic redimensioning of tabs' titlestrue
isClosablebooleanif true, the tabs can be closetrue
draggableItembooleanif true the tab item can be drag and dropfalse
orientationstringorientation of the tabitem (t:top,l:left, r:right, b:bootom)t

Example:
myTabs = new rialto.widget.TabFolder({name:'myTabs',top:'80',left:'150',orientation:'t',width:'500',height:'350',parent:fenOnglet,widthTabName:100,autoRedimTab:false,isClosable:true,draggableItem:true});

PUBLIC METHODS


MethodArguments listReturn valueInheritsTo redefine
addTabItemString title,boolean enabletabItemnono
removeTabItemint indTabvoidnono
activeTabint indTabvoidnono
setVisibleboolean isVisiblevoidnono

addTabItem

this method will allow to add a new tab item
Parameters:
String title:title of the new tab
boolean enable:status of the new tab

removeTabItem

this method will allow to remove a tab by passing his index
Parameters:
int indTab:index of the tab we want to remove

activeTab

this method will allow to display the tab by passing his index
Parameters:
int indTab:index of the tab we want to activate

setVisible

this method will allow to display or hide the tabfolder according to the parameter
Parameters:
boolean isVisible:True to display