class SAPO.Ink.Tabs
Authors:
andre.padez AT co.sapo.pt
Version:
0.1 Tabs component.
Since:
November 2012
Defined in Ink/Tabs/0.1/lib.js

Constructor Summary
Tabs (String|DOMElement selector, Object options)

Function Summary
returns the current active Content Tab
returns the current active Menu anchor
returns the current active Menu LI
changeTab (String|DOMElement selector)
changes to the desired tag
unregisters the component and removes its markup from the DOM
disable (String|DOMElement selector)
disables the desired tag
enable (String|DOMElement selector)
enables the desired tag

Constructor Details

constructor Tabs

Tabs(String|DOMElement selector, Object options)
Parameters:
selector
options
  • optional: String active ID of the tab to activate on creation
  • [ Array disabled ] IDs of the tabs that will be disabled on creation
  • [ Function onBeforeChange ] callback to be executed before changing tabs
  • [ Function onChange ] callback to be executed after changing tabs

Function Details

function activeContentTab

activeContentTab()
returns the current active Content Tab

function activeMenuLink

activeMenuLink()
returns the current active Menu anchor

function activeMenuTab

activeMenuTab()
returns the current active Menu LI

function changeTab

changeTab(String|DOMElement selector)
changes to the desired tag
Parameters:
selector the id of the desired tab or the link that links to it

function destroy

destroy()
unregisters the component and removes its markup from the DOM

function disable

disable(String|DOMElement selector)
disables the desired tag
Parameters:
selector the id of the desired tab or the link that links to it

function enable

enable(String|DOMElement selector)
enables the desired tag
Parameters:
selector the id of the desired tab or the link that links to it