Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Tabs/Sections Javascript API > Tabs methods

Tabs API: addTab

Scroll Prev Next More

 

Creates a new tab and adds it to the end of a tab group.

Syntax

addTab( headerHtml, paneHtml )

Arguments

headerHtml

 

paneHtml

Return value

Returns the index of a new tab.

Example

Create a new tab "New Tab" that contains "New tab content" and add it to the end of a tab group.

 

var tabs = pageObj.getTabs();
tabs.addTab('New tab', 'New tab content');

See also:

RunnerPage object: getTabs

Menu builder

Page Designer: Tabs and sections

About Tabs/Sections API