var tabObj = new ej.navigations.Tab({
items: [
{
header: { 'text': 'Twitter' },
content: '<span>Twitter</span></br><div><input id="intext" class="e-input"></div>'
},
{
header: { 'text': 'Facebook' },
content: 'Facebook '
}
]
});
//First assign to the element
tabObj.appendTo('#Tab');
// give as array of objects
var item3 = [{ header: { text: 'Snapchat' }, content: 'Snapchat app' }];
// then we can use the methods
tabObj.addTab(item3, 2); |