Getting Started

DropDownList

Grid

TabStrip

TreeView

Window

Comming Soon

  • ComboBox

 

 

getTab

Description

Get a tab.

Sample

var tab = $('#MyTabStrip').data('tTabStrip').getTab({ text: 'Tab 2' });
var tab = $('#MyTabStrip').data('tTabStrip').getTab({ index: 1 });
	

getTabIndex

Description

Get index of tab.

Sample

var index = $('#MyTabStrip').data('tTabStrip').getTabIndex('Tab 2');
	

getTabCount

Description

Return a count on the number of tabs in the tabstrip.

Sample

var count = $('#MyTabStrip').data('tTabStrip').getTabCount();
	

hideTab

Description

Hide a tab.

Sample

$('#MyTabStrip').data('tTabStrip').hideTab({ text: 'Tab 2' });
$('#MyTabStrip').data('tTabStrip').hideTab({ index: 1 });
	

showTab

Description

Show a tab.

Sample

$('#MyTabStrip').data('tTabStrip').showTab({ text: 'Tab 2' });
$('#MyTabStrip').data('tTabStrip').showTab({ index: 1 });
	

selectTab

Description

Select a tab.

Sample

$('#MyTabStrip').data('tTabStrip').selectTab({ text: 'Tab 2' });
$('#MyTabStrip').data('tTabStrip').selectTab({ index: 1 });
	

setTabText

Description

Change the text of a tab.

Sample

$('#MyTabStrip').data('tTabStrip').setTabText({ text: 'Tab 2', newText: 'Second Tab' });
$('#MyTabStrip').data('tTabStrip').setTabText({ index: 1, newText: 'Second Tab' });
	

addTab

Description

Add a tab.

Sample

$.ajax({
    url: '/Home/GetTabThree/',
    contentType: 'application/html; charset=utf-8',
    type: 'GET',
    dataType: 'html'
})
.success(function(result) {
    $('#MyTabStrip').data('tTabStrip').addTab({ text: 'Tab Three', html: result });
});
	

hideContent

Description

Hide the contents for all tabs in the tabstrip.

Sample

$('#MyTabStrip').data('tTabStrip').hideContent();
	

showContent

Description

Show the contents for all tabs in the tabstrip.

Sample

$('#MyTabStrip').data('tTabStrip').showContent();
	

removeContent

Description

Remove the contents for all tabs in the tabstrip. Once this is done, there is no way of restoring the tab contents.

Sample

$('#MyTabStrip').data('tTabStrip').removeContent();
	

Last edited Dec 23, 2011 at 3:18 PM by jddevight, version 4

Comments

No comments yet.