
tab
| Name space | rialto.widget |
| FILE | rialtoEngine\javascript\components\containers\tab.js |
| NAME | tab |
| INHERITS | AbstractContainer |
| VERSION | 0.86 |
| update | |
| DESCRIPTION | This object create a tabFolder |
CONSTRUCTOR
| Name | Type | Description | Default |
| Name | String | Name of the HTML element | tab |
| top | int | Top position (in pixel) | 0 |
| left | int | Left position (in pixel) | 0 |
| width | String | Width (in pixel or %) | 1OO% |
| height | String | Height (in pixel or %) | 1O0% |
| parent | String or reference | Reference of an HTML or a javascript element parent of the tab html element | |
| widthTabName | int | Tab Size | |
| autoRedimTab | boolean | True enables the automatic redimensioning of tabs' titles | true |
| isClosable | boolean | if true, the tabs can be close | true |
| draggableItem | boolean | if true the tab item can be drag and drop | false |
| orientation | string | orientation 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
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