Use the jha-question component to ask a simple question that has a limited set of answers. It displays a dialog box at larger screen sizes and a slide up at phone size. You can test this out by sizing the window larger and smaller.
Use the jha-dialog-box component for any dialog box more complex than a simple question.
The canDialogClose value is set to true by default. If you set canDialogClose to false using the button below, the dialogBeforeClosed method will set canDialogClose to true after 400 milliseconds allowing it to close.