Modal option dialog

The dialog created with
dialogs.createOptionDialog() it is not modal and does not have a .withModal method like createMessageDialog().
How do i make it modal ?


Unfortunately, you cannot make it modal, for now. I created an issue: Haulmont/jmix-ui#499.

As a workaround you can create a screen and open it as modal dialog:

UserBrowse dialog = screenBuilders.screen(this)

DialogWindow window = (DialogWindow) dialog.getWindow();