Elements and Widgets

Accordion

12min

Accordion is a widget with a list of items, each of which can be expanded or collapsed. Like Tabs, it is used to group content. Unlike Tabs, Accordion allows you to expand multiple items at a time.

Document image


Accordion settings

You can operate the widget and control its content on the Settings tab, in the right panel.

General settings

Open by default item

You can choose whether any item of the Accordion will be opened by default on page load (Open by default). Initially, this option is disabled and all items will appear collapsed on page load. When enabled, you can choose from the Accordion Items list which item will be opened.

All items will appear collapsed on page load
All items will appear collapsed on page load

The first item will appear opened on page load
The first item will appear opened on page load


Openning multiple items at a time

You can choose multiple elements to be expanded at a time. By default, only one element appears open (Allow opening one at a time). 

Document image


If this option is disabled, the user can expand several Accordion Items, while the rest will not be automatically collapsed.

If the Open by default option is also selected, then you can choose the items from the list that will be opened on page load. You can make one, multiple, or all items open.

Document image


Transition event

In the settings, you can choose an action that will open the Accordion Items (Transition event). The default action is Click. You can also choose Hover.

Document image


Managing Accordion Items

You can manage the Accordion Items:

  • click “+” to add an item
Document image

  • click “-” to delete an item
Document image

  • hold the three stripes icon to the left of the item title to move the item 
Document image


Accordion Item structure

By default, all Accordion Items have the same structure and styles.

Each Accordion Item consists of:

  • Accordion Title
  • Accordion Content

You can add any items and widgets to an Item Title and Item Content. For example, you can add an image to an Item Title. In this case, the image will be added to all other items Titles.

Document image


You can use the Apply independent structure setting with the Accordion. It allows you to make the structure of Accordion Items independent of each other. That is, each item can have different elements and widgets with different styles. Once this setting is enabled, it cannot be cancelled.

Document image


Animation

You can set up animation effects when opening/closing Accordion Items. 

Document image


Animation settings offer the following options:

  • Effect defines an effect on tab opening
    • None
    • Fade (by default)
    • Slide Horizonta
    • Slide Vertical
  • when opening and closing an item (Open/Close)
    • Animation smoothness is defined with Bezier curves, showing the speed of animation at different stages. You can select the desired type from the dropdown list. The default type is Linear.
    • (in milliseconds). You can select animation duration from 0 to 2000ms from the dropdown list. The default value is 200ms

Editing Accordion Items content

To edit content of an Accordion Item, open the Settings tab in the right panel. Click on the title of an item with content you want to edit.

When clicking on the item title, you will switch to the corresponding item on the Canvas.

Click on Item #1 in the settings
Click on Item #1 in the settings

Accordion Item [1] is selected and highlighted on the Canvas
Accordion Item [1] is selected and highlighted on the Canvas


Now you can edit its content.

Styling Accordion

You can style the Accordion widget using the Styles tab in the right panel. You can style both the entire widget and its individual items. For example, you can set borders for the entire widget, as well as paddings for the Title and Content, change the font size and the Title background color.

Document image


Styling the Open Item of the Accordion widget

Open state is used to customize styles of an open item.

Document image


Style the item for this state. For example, you can change the Item Title background color.

Document image




Updated 14 Feb 2024
Did this page help you?