Wijmo UI for the Web
add Method
A URL consisting of a fragment identifier only to create an in-page tab or a full url (relative or absolute, no cross-domain support) to turn the new tab into an Ajax (remote) tab.
The tab label.
Zero-based position where to insert the new tab.
Add a new tab.
Syntax
Javascript (Usage) 
var instance = new jQuery.wijmo.wijtabs();
var value; // Type: wijtabs

// Parameters
var url; // Type:  string
var label; // Type:  string
var index; // Type:  number

value = instance.add(url, label, index);
Javascript (Specification) 
function add( 
   url : string,
   label : string,
   index : number
) : wijtabs;

Parameters

url
A URL consisting of a fragment identifier only to create an in-page tab or a full url (relative or absolute, no cross-domain support) to turn the new tab into an Ajax (remote) tab.
label
The tab label.
index
Zero-based position where to insert the new tab.
Example
//Add a new tab to be a second tab.
$("#element").wijtabs('add', "http://wijmo.com/newTab", "NewTab", 1);
Browser Compatibility
7
5
5

See Also

Reference

wijtabs type

 

 


© 2013 All Rights Reserved.

Send comments on this topic.