Class: TabView

js-whatever/js/tab-view. TabView

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

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

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
reqId string <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
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.