selected([index])

Class: Tabs.

Description:

Sets or gets a selected tab index.

Parameters:

Name Type Description

[index]

number

Index of the tab to select. Out of bounds integer will not select anything)

Returns:

When setting an index, this Tabs component is returned; otherwise currently selected tab index is returned.

Type: number | Tabs