Popup View feature

How can disable click outside area to close popup view?

Hello, @wif180048,

Unfortunately, PopupView does not have this functionality (see documentation) .

If you clarify your task, we can suggest a specific solution. I guess you can use modal dialog if you don’t want to close by an outside area.

For instance, create a screen:

<dialogMode forceDialog="true"/>
<layout>
    <label id="label"
           value="Content label"
           stylename="h1"/>
</layout>

And show it from click on button or link button:

<button id="showDialogBtn" caption="Show dialog"/>


@Inject
private Screens screens;

@Subscribe("showDialogBtn")
public void onShowDialogBtnClick(Button.ClickEvent event) {
    screens.create(DialogScreen.class)
            .show();
}