core/dynamic_tabs

Description:
  • Dynamic Tabs UI element with AJAX loading of tabs content

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

Dynamic Tabs UI element with AJAX loading of tabs content

Members

(static, constant) init

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

Source:

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

Methods

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

Description:
  • Returns id/name of the currently active tab

Source:
Returns:
Type
String | null

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

Description:
  • Returns the id/name of the first tab

Source:
Returns:
Type
String | null

(inner) getTab(tabName) → {HTMLElement}

Description:
  • Return the tab given the tab name

Source:
Parameters:
Name Type Description
tabName String
Returns:
Type
HTMLElement

(inner) getTabPane(tabName) → {HTMLElement}

Description:
  • Return the tab pane given the tab name

Source:
Parameters:
Name Type Description
tabName String
Returns:
Type
HTMLElement

(inner) loadTab(tabName)

Description:
  • Loads contents of a tab using an AJAX request

Source:
Parameters:
Name Type Description
tabName String

(inner) openTab(tabName) → {Boolean}

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

Source:
Parameters:
Name Type Description
tabName String
Returns:
Type
Boolean

(inner) openTabFromHash() → {Boolean}

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

Source:
Returns:
Type
Boolean