BootstrapAccordion Class

Declaration

export class BootstrapAccordion extends Control

Inheritance

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

Type Name Description
number index

Returns

Type Description
BootstrapAccordionGroup
null

getGroupByName method

Declaration

getGroupByName(name: string): BootstrapAccordionGroup | null

Parameters

Type Name Description
string name

Returns

Type Description
BootstrapAccordionGroup
null

getGroupCount method

Declaration

getGroupCount(): number

Returns

Type Description
number

getItemByName method

Declaration

getItemByName(name: string): BootstrapAccordionItem | null

Parameters

Type Name Description
string 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

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

Returns

Type Description
this

on method

Declaration

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

Parameters

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

Returns

Type Description
this

once method

Declaration

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

Parameters

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

Returns

Type Description
this

setActiveGroup method

Declaration

setActiveGroup(group: BootstrapAccordionGroup): void

Parameters

Type Name Description
BootstrapAccordionGroup group

setSelectedItem method

Declaration

setSelectedItem(item: BootstrapAccordionItem): void

Parameters

Type Name Description
BootstrapAccordionItem item