Please enable JavaScript to view this site.

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

Tabs API: activeIdx

Scroll Prev Next More

 

Gets an index of the currently selected tab.

Syntax

activeIdx()

Arguments

No arguments.

Return value

A zero-based index of the active tab.

Example

Get an index of the currently selected tab.

 

var tabs = pageObj.getTabs();
var idx = tabs.activeIdx();

See also:

RunnerPage object: getTabs

Tabs API: Activate

Grid Row JavaScript API: row.getKeys()

Grid Row JavaScript API: row.recordId()

About Tabs/Sections API