BootstrapAccordion Class
Declaration
class BootstrapAccordion extends Control
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.
Methods
collapseAll Method
Declaration
collapseAll(): void
expandAll Method
Declaration
expandAll(): void
getActiveGroup Method
Declaration
getActiveGroup(): BootstrapAccordionGroup | null
Returns
getGroup(index) Method
Declaration
getGroup(
index: number
): BootstrapAccordionGroup | null
Parameters
Returns
getGroupByName(name) Method
Declaration
getGroupByName(
name: string
): BootstrapAccordionGroup | null
Parameters
Returns
getGroupCount Method
Declaration
getGroupCount(): number
Returns
getItemByName(name) Method
Declaration
getItemByName(
name: string
): BootstrapAccordionItem | null
Parameters
Returns
getSelectedItem Method
Declaration
getSelectedItem(): BootstrapAccordionItem | null
Returns
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
Returns
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
Returns
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
Returns
setActiveGroup(group) Method
Declaration
setActiveGroup(
group: BootstrapAccordionGroup
): void
Parameters
setSelectedItem(item) Method
Declaration
setSelectedItem(
item: BootstrapAccordionItem
): void
Parameters