Class

Tabs

Tabs($el)

A class to manage tabs
Constructor

# new Tabs($el)

Parameters:
Name Type Description
$el jQuery The element contains the tabs

View Source src/Tabs.js, line 18

  • 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

View Source src/Tabs.js, line 4

Events

# after-tab-hide

After tab hide event
Properties:
Name Type Description
e Event The event object
$panel jQuery The panel which was hidden.

View Source src/Tabs.js, line 87

# after-tab-show

After tab show event
Properties:
Name Type Description
e Event The event object
$panel jQuery The panel which was shown.

View Source src/Tabs.js, line 107

# 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.

View Source src/Tabs.js, line 73

# 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.

View Source src/Tabs.js, line 96