Class

TabsBar

TabsBar(settings)

Constructor

# new TabsBar(settings)

Parameters:
Name Type Description
settings obeject

Settings for the TabsBar

firstTabIndex number

Index of the Tab active.

transition obeject
transition.effect string

Effect to apply on tab. transitions. One of: fade, slide or none. Default none.

transition.duration duration

Duration of the transition in milliseconds. Default 0.

View Source TabsBar.js, line 5

Methods

# addButton(button)

Add a button to the TabsBar

Parameters:
Name Type Description
button object

Button for add

View Source TabsBar.js, line 59

# addTab(tab)

Add a tab to the TabsBar

Parameters:
Name Type Description
tab object

Tab for add

View Source TabsBar.js, line 67

# closeAll()

Close all tabs

View Source TabsBar.js, line 75

# init()

Init on ready

View Source TabsBar.js, line 39