Search.../

defaultTab

Gets the tabs element's default tab.

Description

The default tab is the tab displayed automatically when the page loads.

Type:

TabRead Only

Was this helpful?

Get the default tab and its label

Copy Code
1let myDefaultTab = $w("#myTabsElement").defaultTab;
2
3let myTabLabel = myDefaultTab.label; // "First Tab"