API Docs for: 1.0.0
Show:

eZ.Tabs Class

Extension providing the _selectTab method which allows to handle a tab based interface. By default, it sets a tap event handler on '.ez-tabs .ez-tabs-label a' to switch from a tab to another.

Item Index

Events

Methods

_getTabLabel

(
  • linkNode
)
Node protected

Returns the tab label element from the corresponding link

Parameters:

Returns:

Node:

_selectTab

(
  • tabLabel
  • targetId
  • container
)
protected

Selects the tabLabel and add the tab selected class on the targetId element inside container while removing it from any other element

Parameters:

  • tabLabel Node
  • targetId String
  • container Node

_uiTab

(
  • e
)
protected

tap event handler on a tab label

Parameters:

  • e Object

    tap event facade

Events

changeTab

Fired when changing the visible tab. The default function changes the DOM so that the new tab panel appears and the associated tab label is highlighted. The behavior can be prevented.

Event Payload:

  • tabLabelNode Node
  • tabId String
  • container Node