Skip to main content

BootstrapPageControl Class

#Declaration

TypeScript
class BootstrapPageControl extends BootstrapTabControl

#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
BootstrapPageControl

#Methods

#getActiveTab Method

#Declaration

TypeScript
getActiveTab(): BootstrapTab | null

#Returns

Type
BootstrapTab
null

#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

#getTabContentHTML(tab) Method

#Declaration

TypeScript
getTabContentHTML(
    tab: BootstrapTab
): string

#Parameters

Name Type
tab BootstrapTab

#Returns

Type
string

#off<K> Method

#Declaration

TypeScript
off<K extends keyof BootstrapPageControlEventMap>(
    eventName?: K,
    callback?: (this: BootstrapPageControl,
    args?: BootstrapPageControlEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#on<K>(eventName, callback) Method

#Declaration

TypeScript
on<K extends keyof BootstrapPageControlEventMap>(
    eventName: K,
    callback: (this: BootstrapPageControl,
    args?: BootstrapPageControlEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#once<K>(eventName, callback) Method

#Declaration

TypeScript
once<K extends keyof BootstrapPageControlEventMap>(
    eventName: K,
    callback: (this: BootstrapPageControl,
    args?: BootstrapPageControlEventMap[K]) => void
): this

#Parameters

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

#Type Parameters

Name Type
K keyof

#Returns

Type
this

#performCallback(data) Method

#Declaration

TypeScript
performCallback(
    data: any
): Promise<void>

#Parameters

Name Type
data any

#Returns

Type
Promise<void>

#performCallback(data, onSuccess) Method

#Declaration

TypeScript
performCallback(
    data: any,
    onSuccess: () => void
): void

#Parameters

Name Type
data any
onSuccess () => void

#setActiveTab(tab) Method

#Declaration

TypeScript
setActiveTab(
    tab: BootstrapTab
): void

#Parameters

Name Type
tab BootstrapTab

#setTabContentHTML(tab, html) Method

#Declaration

TypeScript
setTabContentHTML(
    tab: BootstrapTab,
    html: string
): void

#Parameters

Name Type
tab BootstrapTab
html string