The requested page is not available for the requested platform. You are viewing the content for Default platform.

BootstrapAccordion Class

Declaration

export class BootstrapAccordion 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
BootstrapAccordion

Methods

collapseAll Method

Declaration

collapseAll(): void

expandAll Method

Declaration

expandAll(): void

getActiveGroup Method

Declaration

getActiveGroup(): BootstrapAccordionGroup | null

Returns

Type Description
BootstrapAccordionGroup
null

getGroup Method

Declaration

getGroup(index: number): BootstrapAccordionGroup | null

Parameters

Name Type Description
index

Returns

Type Description
BootstrapAccordionGroup
null

getGroupByName Method

Declaration

getGroupByName(name: string): BootstrapAccordionGroup | null

Parameters

Name Type Description
name

Returns

Type Description
BootstrapAccordionGroup
null

getGroupCount Method

Declaration

getGroupCount(): number

Returns

Type Description
number

getItemByName Method

Declaration

getItemByName(name: string): BootstrapAccordionItem | null

Parameters

Name Type Description
name

Returns

Type Description
BootstrapAccordionItem
null

getSelectedItem Method

Declaration

getSelectedItem(): BootstrapAccordionItem | null

Returns

Type Description
BootstrapAccordionItem
null

off Method

Declaration

off(eventName?: K, callback?: (this: BootstrapAccordion, args?: BootstrapAccordionEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

on Method

Declaration

on(eventName: K, callback: (this: BootstrapAccordion, args?: BootstrapAccordionEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

once Method

Declaration

once(eventName: K, callback: (this: BootstrapAccordion, args?: BootstrapAccordionEventMap[K]) => void): this

Parameters

Name Type Description
eventName
callback

Returns

Type Description
this

setActiveGroup Method

Declaration

setActiveGroup(group: BootstrapAccordionGroup): void

Parameters

Name Type Description
group

setSelectedItem Method

Declaration

setSelectedItem(item: BootstrapAccordionItem): void

Parameters

Name Type Description
item