Constructor
# new Tabs($el)
Parameters:
| Name | Type | Description |
|---|---|---|
$el |
jQuery
|
The element contains the tabs |
- Tabs~event:before-tab-hide
Example
const tabs = new Tabs($('.tabs');
Extends
Methods
# static on(event, listener)
Parameters:
| Name | Type | Description |
|---|---|---|
event |
"before-tab-hide"
|
"after-tab-hide"
|
"before-tab-show"
|
"after-tab-show"
|
The event name |
listener |
function
|
The event listener |
Events
# after-tab-hide
After tab hide event
Properties:
| Name | Type | Description |
|---|---|---|
e |
Event
|
The event object |
$panel |
jQuery
|
The panel which was hidden. |
# after-tab-show
After tab show event
Properties:
| Name | Type | Description |
|---|---|---|
e |
Event
|
The event object |
$panel |
jQuery
|
The panel which was shown. |
# before-tab-hide
Before tab hide event
Properties:
| Name | Type | Description |
|---|---|---|
e |
Event
|
The event object |
$panel |
jQuery
|
The panel which is about to hide. |
# before-tab-show
Before tab show event
Properties:
| Name | Type | Description |
|---|---|---|
e |
Event
|
The event object |
$panel |
jQuery
|
The panel which is about to show. |