Class wink.ui.layout.TabContainer.Tab
Implement a tab to be added to the tab container Create a tab. Tabs should only be instantiated by the TabContainer object
- Defined in: tabcontainer.js
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
wink.ui.layout.TabContainer.Tab(properties)
|
Method Summary
Class Detail
wink.ui.layout.TabContainer.Tab(properties)
- Parameters:
- {object} properties
- The properties object
- {HTMLElement} properties.contentNode
- A DOM node corresponding to the tab content
- {string} properties.title
- The title of the tab
Field Detail
{string}
id
The dom node id of the tab
{integer}
index
The position of tab in the list of tabs
{integer}
position
Position in pixels of the tab inside the tabsNode
{integer}
size
Size in pixels of the tab
{integer}
uId
Unique identifier
Method Detail
-
activate()Activate the tab
-
deactivate()Deactivate the tab
-
{HTMLElement} getContentNode()
- Returns:
- {HTMLElement} The DOM node containing the content of the tab
-
{HTMLElement} getTabNode()
- Returns:
- {HTMLElement} the DOM node containing the tab
-
updateMaxWidth(width)Update the maximum width of the tab
- Parameters:
- {integer} width
- The maximum width in pixels