Class: LazyTabView

js-whatever/js/lazy-tab-view. LazyTabView

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
id String

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
id string <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
id String

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
reqId string <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
e object

jQuery event object

ui object

jQuery UI tabs data

Source:
Copyright 2013-2018 Micro Focus International plc. Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License.
Documentation generated by JSDoc 3.4.3 on Thu Jun 21st 18:04 2018 using the DocStrap template.