Skip to main content

BootstrapTabControl Class

#Declaration

TypeScript
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

TypeScript
adjustSize(): void

#getActiveTab Method

#Declaration

TypeScript
getActiveTab(): BootstrapTab | null

#Returns

Type
BootstrapTab
null

#getActiveTabIndex Method

#Declaration

TypeScript
getActiveTabIndex(): number

#Returns

Type
number

#getTab(index) Method

#Declaration

TypeScript
getTab(
    index: number
): BootstrapTab | null

#Parameters

Name Type
index number

#Returns

Type
BootstrapTab
null

#getTabByName(name) Method

#Declaration

TypeScript
getTabByName(
    name: string
): BootstrapTab | null

#Parameters

Name Type
name string

#Returns

Type
BootstrapTab
null

#getTabCount Method

#Declaration

TypeScript
getTabCount(): number

#Returns

Type
number

#off<K> Method

#Declaration

TypeScript
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

TypeScript
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

TypeScript
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

TypeScript
setActiveTab(
    tab: BootstrapTab
): void

#Parameters

Name Type
tab BootstrapTab

#setActiveTabIndex(index) Method

#Declaration

TypeScript
setActiveTabIndex(
    index: number
): void

#Parameters

Name Type
index number