Class

Tab

Tab(id, settigns)

This class involve a set of Sections.

Constructor

# new Tab(id, settigns)

Parameters:
Name Type Description
id string

Id of the tab.

settigns object

Settings of the tab.

loadOnDemand boolean

Process the section on init. Default false.

transition object

Process the section on init. Default false.

transition.effect string

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

transition.duration string

Duration of the transition in milliseconds,

View Source Tab.js, line 10

Methods

# addSection(section)

Add section to the tab

Parameters:
Name Type Description
section Section

View Source Tab.js, line 112

# closeSubmenu()

Close the submenu

View Source Tab.js, line 103

# init(settings)

Init tab This is part of the initialization process

Parameters:
Name Type Description
settings object

Settings for the tab

View Source Tab.js, line 39

# isSelected() → {boolean}

Check if the tab is selected

View Source Tab.js, line 176

boolean

# refresh()

Refresh the sections in tab

View Source Tab.js, line 166

# select()

Select tab

View Source Tab.js, line 120

# setTransition(trans)

Set transition properties For transition we can use the next keys:

  • effect[=none] - Effect to apply on tab transitions: Fade, Slide or None.
  • duration[=0] - Duration of the transition (in milliseconds).
Parameters:
Name Type Description
trans object

Transition options

View Source Tab.js, line 87

# toSection()

Go To Section

View Source Tab.js, line 94

# unselect()

Unselect tab

View Source Tab.js, line 183