Accordion Panel

(part of package 'Bootstrap Components') Extends designtime/SolutionModel: JSWebComponent Extends runtime: RuntimeWebComponent

The AccordionPanel component is a container similar to a TabPanel, but, instead of having tabs for showing / hiding forms, it has buttons that behave like an accordion, moving one way or the other.

This is a reference page; many components have detailed usage guides here.

Properties

activeTabIndex

Type: Number Default Value: 0


containerStyleClass

The CSS class(es) to be added to container element - parent of the form element.

Type: Styleclass


height

Minimum height of the accordion, should be used for responsive forms.

Type: Number Default Value: "500"


styleClass

The CSS class(es) to be added to accordion element.

Type: Styleclass


tabIndex

Type: Number Default Value: 1


tabSeq

Type: Tabseq


tabs

Type: Array<CustomType<bootstrapcomponents-accordion.tab>>


visible

Whether the button is visible or not

Type: Visible


Events

onChangeMethodID(previousIndex,event)

Fired after a different tab is selected

Parameters:


API

addTab(form,tabText,index)

Adds a tab to this accordion with that form and text on the given index

Parameters:

  • {Form} form The form to be added as a new tab in the accordion component.

  • {String} tabText The text to be displayed on the tab for the added form.

  • {Number} [index] Optional. The position at which the tab should be added. If not provided, the tab is added at the end.

Returns: CustomType<bootstrapcomponents-accordion.tab> The newly created tab object that represents the added form in the accordion component.


getTabAt(i)

Return the Tab of the given index.

Parameters:

  • {Number} i The 0-based index of the tab to retrieve from the accordion component.

Returns: CustomType<bootstrapcomponents-accordion.tab> The tab object at the specified index in the accordion component.


removeTabAt(index)

Removes a tab of the given index. Return true if this was sucessfull.

Parameters:

  • {Number} index The 0-based position of the tab to be removed from the accordion component.

Returns: Boolean True if the tab was successfully removed; false otherwise.


selectTabAt(index)

Select the tab of the given index. Return true if this was succesfull.

@deprecated use tabIndex property instead.

Parameters:

Returns: Boolean


Types

tab

scripting type: CustomType<bootstrapcomponents-accordion.tab>


Last updated

Was this helpful?