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, |
Methods
# init(settings)
Init tab This is part of the initialization process
Parameters:
Name | Type | Description |
---|---|---|
settings |
object
|
Settings for the tab |
# 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 |