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 |

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

gadgets.Tab.getContentContainer

;HTMLElement getContentContainer()

Returns
TypeDescription |

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

gadgets.Tab.getIndex

;Number getIndex()

Returns
TypeDescription |

Description
Returns the tab's index.

gadgets.Tab.getName

;String getName()

Returns
TypeDescription |

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

gadgets.Tab.getNameContainer

;HTMLElement getNameContainer()

Returns
TypeDescription |

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

{{ JsApiAlphaList_(v0.9) }}