To integrate the tabbed UI feature set, you need to take a few steps:
TabSet constructor method call for the
tabbed UI features.
var tabs = new
gadgets.TabSet(__MODULE_ID__, "Default Tab ID");
To create a new tab within the
TabSet, call the
addTab() method of the
tab is selected. The tab
is passed in as a parameter to the callback function when
contentContainer(DOM node reference)
A reference to an HTML entity node out of which the tab
content is created.
This parameter can be the result
of obtaining an element using
the DOM node does not exist, it will be
The numeric index at which the new tab should be inserted. If this value is not included, the new tab will be inserted at the end of the tab list.
A tool tip that is displayed to a user when she hovers her mouse over a tab.
addTab() method contains
enough abstraction to allow developers to define the tab and its content
in many different ways within their gadgets.