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.

Drawer

Use the drawer component to provide easy access to information that does not need to be visible at all times.

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 drawer component within the component browser and then click the Select button.

    drawer component select

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

Configure the drawer component

drawer fields
  1. Enter the label of the title which will trigger the drawer.

  2. Enter the drawer’s title.

  3. Enter the drawer’s content.

  4. Specify the position of the drawer when it is open.

  5. Specify the size of the drawer as a percentage of the screen.

    The drawer will always take up 100% of the screen on mobile.

  6. (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.

  7. (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.

Basic example

This image shows an active drawer.

drawer example

You can apply your own CSS styling.