Version:
Cohesiondx.com

    Accordion tabs elements

    The Accordion tabs elements allow you to add an accordion and/or tabbed content area to your layout. Here are some examples of accordions and tabs.

    Why is it called Accordion tabs?

    It's called Accordion tabs because you can set the elements to either an accordion or a tabbed device. This option is available by breakpoint so you can change the device from tabs to accordions at different screen widths. The common requirement for this is setting a tabbed content area to become an accordion content area on the mobile breakpoint where there's not enough horizontal space to display tabs.

    How an accordion tabs area is composed

    To create a accordion or tabbed content area you will use two elements and a custom style:

    • Accordion tabs container - The container that holds each accordion item or tab. For more information, see Accordion tabs container element
    • Accordion tabs item - The accordion items or tabs that hold your content. For more information, see Accordion tabs item element
    • Accordion tabs custom style - The style of the accordion or tab navigation. You can set different styles for tabs and accordions.

    Accordion-tabs-structure.png

     

    Creating an accordion tabs device

    The following steps illustrate the process of creating a simple accordion tabs device. 

    Step 1 - Create your accordion navigation style

    1. Navigate to DX8 > Styles > Custom styles > Create custom style
    2. Click on Accordion tabs
    3. Give your style a name in the Name field
    4. Create your accordion navigation style using the Style builder
    5. Click Save.

    Step 2 - Create your tabs navigation style

    1. Navigate to DX8 > Styles > Custom styles > Create custom style
    2. Click on Accordion tabs
    3. Give your style a name in the Name field
    4. Create your tabs navigation style using the Style builder
    5. Click Save.

    Step 3 - Add an accordion tabs container to your layout canvas

    1. Drag an Accordion tabs container onto your Layout canvas
    2. Double click on the Accordion tabs container to define its settings
    3. Within the Accordion or tab section, set it to Tabs on Wide Desktop and Accordion on Mobile. For more information, see Accordion tabs container element.
    4. Click Apply.

    Step 4 - Add an accordion tabs item to your accordion tabs container

    1. Drag an Accordion tabs item into your Accordion tabs container
    2. Double click on the Accordion tabs item to define its settings. For more information, see Accordion tabs item element
    3. Select your Accordion navigation style in Accordion style. You created this in step 1
    4. Select your Tabs navigation style in Tabs style. You created this in step 2
    5. Click Apply.

    Step 5 - Add some content to your accordion tabs item

    1. Drag a content element into your Accordion tabs item. For example, drag in the Paragraph element and add a paragraph of text to it.

    Step 6 - Duplicate your accordion tabs item

    A quick way to create new Accordion items once you have configured your first one is to duplicate them. 

    1. On your Accordion tabs item, click on the ...ellipsis  button and click Duplicate
    2. Repeat this 3 more times to create 5 items. This is just for the purpose of demonstration.

    Save to finish

    1. Click Save
    2. View your page containing your Accordion tabs device that will turn into an accordion device at the mobile breakpoint.

    Configuring the accordion tabs container and item elements

    There are many settings and options available for the Accordion tabs elements. For more information on configuring them, see Accordion tabs container element and Accordion tabs item element.

      Cohesion DX8 Help center

      Launch our Help center to raise a support ticket or search our knowledge base of common questions and answers.

      DX8 knowledge base icon

      Knowledge base

      Get instant answers to common questions. Available online 24/7.

      Find answers

      Raise a ticket icon

      Raise a support ticket

      Log in to the Help center to raise an issue. Available Monday - Friday, 09:00 - 17:00 GMT.

      Raise ticket