Reference - SS.control.tab - Tab
Tab controls are designed to be nested inside a Tab Bar control which acts as a parent to ensure
that a no more than a single tab is selected at any one time.
E.g.
<div ext="tabbar" id="tabs1" onselect="alert($gc(this.id).selectedTab().id);">
<div ext="tab" selected=1>Tab1</div>
<div ext="tab">Tab2</div>
<div ext="tab">Tab3</div>
<div ext="tab">Tab4</div>
</div>
Attributes:
Functions:
Attributes
css
CSS Style
Base style applied to the tab.
s - {String} (Default = "SS_control_tab")
v1.0.3.20081026
[Top]
css_on
CSS Style When Selected
CSS style applied to the tab when it has been selected
s - {String} (Default = "SS_control_tab_on")
v1.0.3.20081026
[Top]
id
Tab Id
Id assigned to the tab and ultimately the HTML element.
s - {String}
v1.0.3.20081026
[Top]
onselect
OnSelect function
Function called when the tab has been selected.
s - {String) - function call
v1.0.3.20081026
[Top]
ondeselect
OnDeselect function
Function called when the tab that was selected is no longer selected.
s - {String) - function call
v1.0.3.20081026
[Top]
selected
Selected Flag
Boolean flag to indicate if the tab is currently selected.
b - {Boolean} - (Default = false)
v1.0.3.20081026
[Top]
visible
Tab Visible
Sets the visibility of the tab. Use in conjunction with style="display:none;" to
hide the initial rendering of the control.
b - {Boolean} (Default = true)
v1.0.3.20081026
[Top]
Functions
deselect
Deselect the current tab
Deselects the current tab. Fires function defined in ondeselect attribute.
e : {Event}
null
v1.0.3.20081026
[Top]
select
Select the current tab
Selects the tab defiend in the context of this function call. If a previous tab
has been selected, the function defined in ondeselect attribute will fire first.
Fires function defined in onselect attribute.
e : {Event}
null
v1.0.3.20081026
[Top]