TAccordion

TAccordion displays an accordion control. Users can click on the view headers to switch among different accordion views. Each accordion view is an independent panel that can contain arbitrary content.

A TAccordion control consists of one or several TAccordionView controls representing the possible accordion views. At any time, only one accordion view is visible (active), which is specified by any of the following properties:

If both ActiveViewIndex and ActiveViewID are set, the latter takes precedence.

TAccordion uses CSS to specify the appearance of the accordion headers and panels. By default, an embedded CSS file will be published which contains the default CSS for TAccordion. You may also use your own CSS file by specifying the CssUrl property. The following properties specify the CSS classes used for elements in a TAccordion:

To use TAccordion, write a template like following:

<com:TAccordion> <com:TAccordionView Caption="View 1"> content for view 1 </com:TAccordionView> <com:TAccordionView Caption="View 2"> content for view 2 </com:TAccordionView> <com:TAccordionView Caption="View 3"> content for view 3 </com:TAccordionView> </com:TAccordion>