Skip to main content

BootstrapAccordion Class

Declaration

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
BootstrapAccordionGroup
null

getGroup(index) Method

Declaration

getGroup(
    index: number
): BootstrapAccordionGroup | null

Parameters

Name Type
index number

Returns

Type
BootstrapAccordionGroup
null

getGroupByName(name) Method

Declaration

getGroupByName(
    name: string
): BootstrapAccordionGroup | null

Parameters

Name Type
name string

Returns

Type
BootstrapAccordionGroup
null

getGroupCount Method

Declaration

getGroupCount(): number

Returns

Type
number

getItemByName(name) Method

Declaration

getItemByName(
    name: string
): BootstrapAccordionItem | null

Parameters

Name Type
name string

Returns

Type
BootstrapAccordionItem
null

getSelectedItem Method

Declaration

getSelectedItem(): BootstrapAccordionItem | null

Returns

Type
BootstrapAccordionItem
null

off<K> Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

on<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

once<K>(eventName, callback) Method

Declaration

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

Parameters

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

Type Parameters

Name Type
K keyof

Returns

Type
this

setActiveGroup(group) Method

Declaration

setActiveGroup(
    group: BootstrapAccordionGroup
): void

Parameters

Name Type
group BootstrapAccordionGroup

setSelectedItem(item) Method

Declaration

setSelectedItem(
    item: BootstrapAccordionItem
): void

Parameters

Name Type
item BootstrapAccordionItem