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.

Dialog

Using the Dialog component allows the display of additional information in a dialog box/lightbox.

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

    dialog component select

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

Configure the dialog component

dialog fields
  1. Enter the dialog’s title.

  2. Enter the dialog’s content.

  3. Enter the text that will appear on the dialog close button.

  4. Enter a unique ID for the dialog. The ID will be used to trigger the dialog in another component. e.g. <a href="#" id="unique-id-of-dialog-to-open">

  5. Specify the size of the dialog.

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

dialog example

You can apply your own CSS styling.