Extends: Object
Implements: Options, Events, Jx.Addable
A convenience class to handle the common case of a single toolbar directly attached to the content area of the tabs. It manages both a Jx.Toolbar and a Jx.TabSet so that you don’t have to. If you are using a TabBox, then tabs only have to be added to the TabBox rather than to both a Jx.TabSet and a Jx.Toolbar.
var tabBox = new Jx.TabBox('subTabArea', 'top');
var tab1 = new Jx.Button.Tab('Tab 1', {contentID: 'content4'});
var tab2 = new Jx.Button.Tab('Tab 2', {contentID: 'content5'});
tabBox.add(tab1, tab2);Copyright © 2008, DM Solutions Group Inc.
This file is licensed under an MIT style license
| Jx. | Extends: Object |
| Options | |
| parent | a DOM element to add the tab box to |
| position | the position of the tab bar in the box, one of ‘top’, ‘right’, ‘bottom’ or ‘left’. |
| height | a fixed height in pixels for the tab box. |
| width | a fixed width in pixels for the tab box. |
| scroll | should the tab bar scroll its tabs if there are too many to fit in the toolbar, true by default |
| Properties | |
| tabBar | {Jx.Toolbar} the toolbar for this tab box. |
| tabSet | {Jx.TabSet} the tab set for this tab box. |
| Constructor | |
| Jx. | Create a new instance of a TabBox. |
| Functions | |
| add | Add one or more <Jx.Tab>s to the TabBox. |
| remove | Remove a tab from the TabSet. |
{Jx.Toolbar} the toolbar for this tab box.
{Jx.TabSet} the tab set for this tab box.
add : function()
Add one or more <Jx.Tab>s to the TabBox.
| tab | {<Jx.Tab>} an instance of <Jx.Tab> to add to the tab box. More than one tab can be added by passing extra parameters to this method. Unlike Jx.TabSet, tabs do not have to be added to a separate Jx.Toolbar. |
Add one or more Jx.Tabs to the TabBox.
add : function()
Remove a tab from the TabSet.
remove : function( tab )