new TabView(options)
Wrapper around the jQuery UI tabs widget
Parameters:
| Name | Type | Description |
|---|---|---|
options |
TabViewOptions |
- Source:
Extends
- Backbone.View
Methods
-
find(id) → {TabData}
-
Finds the tab data for a given id
Parameters:
Name Type Description idString The id of the tab
- Source:
Returns:
The tab data for the id
- Type
- TabData
-
getSelectedRoute(id) → {string}
-
Gets the selected route for the tab view
Parameters:
Name Type Argument Default Description id<optional>
this.selectedId The id of the tab to use
- Source:
Returns:
- Type
- string
-
indexOf(id) → {number}
-
Obtains the index of the tab with given id
Parameters:
Name Type Description idString The id of the tab
- Source:
Returns:
The tab data for the id
- Type
- number
-
selectTab(reqId)
-
Activates a tab by id
Parameters:
Name Type Argument Default Description reqIdstring <optional>
this.selectedId The id of the tab
- Source:
-
showTab(e, ui)
-
Shows a tab in response to an event from the jQuery plugin.
Parameters:
Name Type Description eobject jQuery event object
uiobject jQuery UI tabs data
- Source: