TabsNav

The TabNav Class provides properties, methods, and events to interface with the HTML tags generated by the <silk:TabNav> tag.

Kind: global class

Properties

Name
Type
Description

$tabs

Object

The jQuery object referencing the tabs HTML tag.

$active

Object

The jQuery object referencing the ative tab HTML tag.

pageList

Array

The array containing the page's names manges by the TabNav.

activePage

String

The active page's name being visualized.

Methods and Event

new TabsNav()

Returns a TabNav instance.

addPage(pageName, pageTitle)

Adds a new page to the Tab Navigator.

Kind: instance method of TabsNav

Param
Type
Description

pageName

String

Page's name or unique identifier.

pageTitle

String

Page title to show in tab.

exists(pageName)

Returns true if the provided page's name exist in the pages list, otherwise it returns false.

Kind: instance method of TabsNav

Param
Type
Description

pageName

String

Page's name or unique identifier.

hideTab(pageName)

Hides the tab of the provided page's name.

Kind: instance method of TabsNav

Param
Type
Description

pageName

String

Page's name or unique identifier.

render()

Renders or re-generates the tabs HTML tags.

Kind: instance method of TabsNav

setActive(pageName)

Activates the tab related to the provided page's name.

Kind: instance method of TabsNav

Param
Type
Description

pageName

String

Page's name or unique identifier.

show()

Shows the page related to the active tab.

Kind: instance method of TabsNav

showTab(pageName)

Unhides the tab of the provided page's name'

Kind: instance method of TabsNav

Param
Type
Description

pageName

String

Page's name or unique identifier.

toggleTab(pageName, mode)

Toglees the tab status of the provided page's name between active or inactive

Kind: instance method of TabsNav

Param
Type
Description

pageName

String

Page's name or unique identifier.

mode

boolean

True to activate and false to deactive tab