TabPanel()

For use with DuAEF.DuScriptUI.
A Panel with tabs.
This is not a real class, and cannot be instanciated.
Use DuAEF.DuScriptUI.addTabPanel to create a picker.
The TabPanel inherits the Group object from ScriptUI and has all of its properties and methods.

new TabPanel()

Properties:
Name Type Description
buttons Array.<DuButton> The buttons for the tabs. Not that an "index" property is added to the button, containing the Tab index.
tabs Array.<Tab> The tabs.
index int The currently visible tab.
buttonsGroup Group The ScriptUI Group containing the buttons
mainGroup Group The ScriptUI Group containing the tabs
onChange TabPanel~onChange Called when the index changes.

Methods

static addTab(tabTitleopt, textopt, imageopt, helpTipopt, imageOveropt) → {Tab}

Adds a new empty Tab in the TabPanel.
Parameters:
Name Type Attributes Default Description
tabTitle string <optional>
'' The title of the tab.
text string <optional>
tabTitle The label of the button.
image string <optional>
'' The path to the icon.
helpTip string <optional>
'' The helptip.
imageOver string <optional>
image The path to an icon displayed when the mouse is over the button.
Returns:
Tab - The new Tab.

static setCurrentIndex(indexopt)

Sets the current visible tab.
Parameters:
Name Type Attributes Default Description
index int <optional>
0 The index of the tab to show.

Type Definitions

onChange()

Called when the index changes.