/
Gadgets.Tab (v0.9)

Gadgets.Tab (v0.9)

NeedsExamples

gadgets.Tab

Tab class for gadgets. You create tabs using the TabSet addTab() method. To get Tab objects, use the TabSet getSelectedTab() or getTabs() methods. See also: TabSet

Methods

gadgets.Tab.getCallback

;Function getCallback()

Returns
TypeDescription |

Function

The callback function of the tab

Description
Returns the callback function that is executed when the tab is selected.

gadgets.Tab.getContentContainer

;HTMLElement getContentContainer()

Returns
TypeDescription |

HTMLElement

The HTML element of the content container

Description
Returns the HTML element where the tab content is rendered.

gadgets.Tab.getIndex

;Number getIndex()

Returns
TypeDescription |

Number

The tab's index

Description
Returns the tab's index.

gadgets.Tab.getName

;String getName()

Returns
TypeDescription |

String

The label of the tab

Description
Returns the label of the tab as a string (may contain HTML).

gadgets.Tab.getNameContainer

;HTMLElement getNameContainer()

Returns
TypeDescription |

HTMLElement

The HTML element of the tab's label

Description
Returns the HTML element that contains the tab's label.

{{ JsApiAlphaList_(v0.9) }}