diff --git a/articles/components/dialog/index.adoc b/articles/components/dialog/index.adoc index 4ce0f05bf8..b1947e5e7d 100644 --- a/articles/components/dialog/index.adoc +++ b/articles/components/dialog/index.adoc @@ -199,6 +199,21 @@ endif::[] Usually, non-modal dialogs should be draggable, so that the user can move them to access the user interface beneath. +[NOTE] +In some use cases you may want to disable the server side modality. This can be done after Dialog has been opened. + +[source,java] +---- + Dialog dialog = new Dialog(); + dialog.addOpenedChangeListener(e -> { + if (e.isOpened()) { + UI.getCurrent().setChildComponentModal(dialog, false); + } + }); + // Dialog needs to be added to layout + add(dialog); +---- + == Position