core/dynamic_tabs

Dynamic Tabs UI element with AJAX loading of tabs content

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) init

Source:

Initialises the tabs view on the page (only one tabs view per page is supported)

Methods

(inner) getActiveTabName() → {String|null}

Source:

Returns id/name of the currently active tab

Returns:
Type
String | null

(inner) getFirstTabName() → {String|null}

Source:

Returns the id/name of the first tab

Returns:
Type
String | null

(inner) getTab(tabName) → {HTMLElement}

Source:

Return the tab given the tab name

Parameters:
Name Type Description
tabName String
Returns:
Type
HTMLElement

(inner) getTabPane(tabName) → {HTMLElement}

Source:

Return the tab pane given the tab name

Parameters:
Name Type Description
tabName String
Returns:
Type
HTMLElement

(inner) loadTab(tabName)

Source:

Loads contents of a tab using an AJAX request

Parameters:
Name Type Description
tabName String

(inner) openTab(tabName) → {Boolean}

Source:

Open the tab on page load. If this script loads before theme_boost/tab we need to open tab ourselves

Parameters:
Name Type Description
tabName String
Returns:
Type
Boolean

(inner) openTabFromHash() → {Boolean}

Source:

If there is a location hash that is the same as the tab name - open this tab.

Returns:
Type
Boolean