isEnabledTop
bool isEnabled()
Return true if the tab is enabled
Show/Hide Code
<script type="text/javascript">
function foo()
{
var home_tab = kts.getTab("home");
//Check if the tab is disabled
if(!home_tab.isEnabled())
{
alert("Home tab is disabled");
}
}
</script>
Supported from version: 1.0.0.0
enableTop
bool enable()
Set whether the tab is enabled
Show/Hide Code
<script type="text/javascript">
function foo()
{
var home_tab = kts.getTab("home");
//Disable the tab
home_tab.enable(false);
}
</script>
Supported from version: 1.0.0.0
isSelectedTop
bool isSelected()
Return true if the tab is selected
Show/Hide Code
<script type="text/javascript">
function foo()
{
var home_tab = kts.getTab("home");
//Check if the tab is selected
if(!home_tab.isSelected())
{
alert("This tab is not selected");
}
}
</script>
Supported from version: 1.0.0.0
selectTop
void select()
Make the tab selected
Show/Hide Code
<script type="text/javascript">
function foo()
{
//Make home tab selected
var home_tab = kts.getTab("home");
home_tab.select();
}
</script>
Supported from version: 1.0.0.0
unselectTop
void unselect()
Make the tab unselected
Show/Hide Code
<script type="text/javascript">
function foo()
{
//Make home tab unselected
var home_tab = kts.getTab("home");
home_tab.unselect();
}
</script>
Supported from version: 1.0.0.0
getParentIdTop
string getParentId()
Get the id of parent tab
Show/Hide Code
<script type="text/javascript">
function foo()
{
var home_tab = kts.getTab("home");
alert(home_tab.getParentId());
}
</script>
Supported from version: 1.5.0.0
moveToFrontTop
void moveToFront()
Move a tab to in front of another same level tab
Show/Hide Code
<script type="text/javascript">
function foo()
{
var home_tab = kts.getTab("home");
home_tab.moveToFont("service");//Move the home tab to in front of service tab
}
</script>
Supported from version: 1.5.0.0
moveToBehindTop
void moveToBehind()
Move a tab to behind of another same level tab
Show/Hide Code
<script type="text/javascript">
function foo()
{
var home_tab = kts.getTab("home");
home_tab.moveToBehind("service");//Move the home tab to behind of service tab
}
</script>
Supported from version: 1.5.0.0
getChildIdsTop
array getChildIds()
Get the id of parent tab
Show/Hide Code
<script type="text/javascript">
function foo()
{
var home_tab = kts.getTab("home");
var _childids = home_tab.getChildIds();
for(var i in _childids)
{
alert(_childids[i]);
}
}
</script>
Supported from version: 1.5.0.0