The information on this page relates to beta testing within the DXP

This documentation includes information for selected beta testers within the DXP. DO NOT use this unless you have been instructed to do so.

Accordion

Use the accordion component to display a set of items within an accordion on your web page.

Add the component to your page

When you are editing your page using page-builder:

  1. Add a component to your page by clicking the widgets Add component button or by adding a content block (by clicking the add_circle button) then clicking the add component button.

  2. Locate the accordion core component within the component browser and then click the Select button.

    accordion component select

  3. This will add the accordion component to your page.

Configure the accordion component

accordion fields
  1. The add_circle Add button allows you to add additional items to your accordion. When the component loads you will have an unpopulated item that you can fill in. This is covered in the Item configuration section.

  2. This allows you to choose the heading level for the item title.

  3. This controls whether or not other accordion items automatically close when a different item is selected.

  4. This controls whether a button for opening and closing all accordion items at once is provided.

  5. (Optional) This allows you to add a unique ID into the HTML markup to the instance of the component so that you can add custom styling and functionality using CSS and javascript respectively.

  6. (Optional) This allows you to add a class into the HTML markup to the instance of the component so that you can add custom styling and functionality using CSS and javascript respectively.

Item configuration

The following options can be used to configure each accordion item:

accordion item fields
  1. Enter the card’s title.

  2. Enter the accordion item’s content.

  3. Controls if the accordion item is displayed in the open state when the page loads.