changeTab( )


Changes the tabs element's current tab.

The changeTab() function returns a Promise that is resolved when the tabs element finishes moving from the current tab to the tab referred to by tabReference.

You can retrieve tab elements to pass to the tabReference parameter from your tabs element using the currentTab, defaultTab, or tabs properties.

Changing tabs using changeTab() triggers the onChange() event handler.

Method Declaration
Copy
Method Parameters
tabReferenceunionRequired

The tab within the tabs element to move to. Either a tab element or its ID without a preceding # character.

Returns
Return Type:Promise<Tab>
Was this helpful?
Yes
No