Skip to main content

BootstrapTabControl Class

Declaration

class BootstrapTabControl extends Control

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.

Inheritance

Control
BootstrapTabControl

Methods

adjustSize Method

Declaration

adjustSize(): void

getActiveTab Method

Declaration

getActiveTab(): BootstrapTab | null

Returns

Type
BootstrapTab
null

getActiveTabIndex Method

Declaration

getActiveTabIndex(): number

Returns

Type
number

getTab(index) Method

Declaration

getTab(
    index: number
): BootstrapTab | null

Parameters

Name Type
index number

Returns

Type
BootstrapTab
null

getTabByName(name) Method

Declaration

getTabByName(
    name: string
): BootstrapTab | null

Parameters

Name Type
name string

Returns

Type
BootstrapTab
null

getTabCount Method

Declaration

getTabCount(): number

Returns

Type
number

off<K> Method

Declaration

off<K extends keyof BootstrapTabControlEventMap>(
    eventName?: K,
    callback?: (this: BootstrapTabControl,
    args?: BootstrapTabControlEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: BootstrapTabControl, args?: BootstrapTabControlEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

on<K>(eventName, callback) Method

Declaration

on<K extends keyof BootstrapTabControlEventMap>(
    eventName: K,
    callback: (this: BootstrapTabControl,
    args?: BootstrapTabControlEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: BootstrapTabControl, args?: BootstrapTabControlEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

once<K>(eventName, callback) Method

Declaration

once<K extends keyof BootstrapTabControlEventMap>(
    eventName: K,
    callback: (this: BootstrapTabControl,
    args?: BootstrapTabControlEventMap[K]) => void
): this

Parameters

Name Type
eventName K
callback (this: BootstrapTabControl, args?: BootstrapTabControlEventMap[K]) => void

Type Parameters

Name Type
K keyof

Returns

Type
this

setActiveTab(tab) Method

Declaration

setActiveTab(
    tab: BootstrapTab
): void

Parameters

Name Type
tab BootstrapTab

setActiveTabIndex(index) Method

Declaration

setActiveTabIndex(
    index: number
): void

Parameters

Name Type
index number