new LazyTabView()
Version of TabView which doesn't render views until they are required.
- Source:
Extends
Methods
-
find(id) → {TabData}
-
Finds the tab data for a given id
Parameters:
Name Type Description idString The id of the tab
- Inherited From:
- Source:
Returns:
The tab data for the id
- Type
- TabData
-
getSelectedRoute(id) → {string}
-
Returns a route representing the current state of the tab view
Parameters:
Name Type Argument Default Description idstring <optional>
this.selectedId The id of the tab which will be used in the route
- Source:
Returns:
The route for the lazy-tab-view.
- Type
- string
-
indexOf(id) → {number}
-
Obtains the index of the tab with given id
Parameters:
Name Type Description idString The id of the tab
- Inherited From:
- 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
- Inherited From:
- Source:
-
showTab(e, ui)
-
Shows a tab in response to an event from the jQuery plugin. Renders a view if it hasn't been rendered
before. Calls the tabActivation method of the view if it is defined.Parameters:
Name Type Description eobject jQuery event object
uiobject jQuery UI tabs data
- Source: