DialogModeFacet

DialogModeFacet allows you to define settings of geometry and behavior of the screen when it is opened as a dialog.

Component’s XML-name: dialogMode.

Basics

DialogModeFacet is defined in the window element of the screen XML descriptor and has the following attributes:

  • closeable - defines whether the dialog window has a close button. Possible values:

    • true - the default value.

    • false

  • closeOnClickOutside - defines if the dialog window should be closed by click outside the window area when the window has a modal mode. Possible values:

    • true

    • false - the default value.

  • forceDialog - specifies that the screen should always be opened as a dialog. Possible values:

    • true

    • false - the default value.

  • height - sets the height of the dialog window.

  • positionX - sets the x position of the top-left corner of the dialog window.

  • positionY - sets the y position of the top-left corner of the dialog window.

  • resizable - defines whether a user can change the size of the dialog window. Possible values:

    • true

    • false - the default value.

  • width - sets the width of the dialog window.

  • windowMode - defines window mode. Possible values:

    • NORMAL - the default value. The screen will open based on the size and position settings.

    • MAXIMIZED - the dialog window will be maximized across the screen.

<window xmlns="http://jmix.io/schema/ui/window"
        caption="msg://dialogModeFacetScreen.caption">
    <dialogMode height="600"
                width="800"
                positionX="200"
                positionY="200"
                closeable="false"
                closeOnClickOutside="true"
                modal="false"
                resizable="true"
                forceDialog="true"/>
    <layout>
        <!--...-->
    </layout>
</window>

All XML Attributes

You can view and edit attributes applicable to the facet using the Component Inspector panel of the Studio’s Screen Designer.