Dialog

A dialog component, similar to a modal, is an overlay element designed to capture user attention for tasks like confirmations, prompts, or additional information. It appears on top of the main content, requiring user interaction to proceed.

1. Default

By default, the Dialog does not include any padding. This is a general rule followed by other components in the Mercury design system. To add padding, you can use any combination of the provided CSS classes designed for this purpose. Learn more about the spacing classes on the spacing documentation page . All the examples that follow display the Dialog with padding, by applying the .spacing-body class.


GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.

2. Without Padding

GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.

3. With Header

GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.

GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.

5. Resizable

resizable allows you to resize the dialog by dragging from the edges. You might want in this case to set maximum and minimum block and inline sizes. For this, the ch-dialog provides specific CSS custom properties that you should use:

  • --ch-dialog-max-block-size
  • --ch-dialog-max-inline-size
  • --ch-dialog-min-block-size
  • --ch-dialog-min-inline-size

GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.

6. Adjust Position

adjustPositionAfterResize will reposition the dialog after being resized. This property goes hand in hand with resizable


GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.

7. Non Modal

By default, the ch-dialog component functions as a modal, meaning it prevents interaction with the rest of the page's content when visible. To make the dialog non-modal and allow interaction with the background content, set the modal property to false.


GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.

8. Allow Drag

By default, the ch-dialog component does not support dragging. You can enable dragging by setting the allowDragging property to either header or box. In the following example, allowDragging is set to box, as the dialog does not have a header to drag.


GeneXus is a low-code development platform that streamlines the creation of enterprise applications by automatically generating code for various environments from a single specification.


It's ideal for developers who want to quickly prototype, develop, and deploy applications across web, mobile, and desktop platforms. With its model-driven approach, GeneXus minimizes the need for manual coding, allowing developers to focus on design and user experience.


The platform also excels in its robust integration capabilities, enabling seamless connectivity with various databases and third-party services. This flexibility ensures that applications built with GeneXus are scalable and maintainable, reducing the time and effort required for updates and enhancements.