Page

4 minutes to read Download PDF Edit

Pages define the end user interface of a Mendix application. Every page is based on a layout. A page fills the ‘gaps’ defined by a layout with widgets such as the data view and the data grid.

Common Properties

Name

The name of the page. You can change the name via the project explorer.

Documentation

This property can be used to store developer documentation. End-users will never see this documentation.

Class

The class property allows you to specify a cascading style sheet (CSS) class for the page.

Style

The style property allows you to specify custom cascading style sheet (CSS) rules for this page. If a class is also specified, this styling is applied after the class.

Designer Properties

Canvas width

The canvas width property defines the width in pixels of the page in the page editor. It is purely used for editing purposes; this property has no effect on the actual application.

Default value: 800

Canvas height

The canvas height property defines the preferred minimum height in pixels of the page in the page editor. It is purely used for editing purposes; this property has no effect on the actual application.

Default value: 600

General Properties

Title

The title of the page that is shown using the page title widget. If the page is shown in a pop-up the title appears in the title bar of the pop-up. The title can be overridden from places where forms are opened to make it possible to reuse a page for different purposes. For example, a Grid New Button and an Edit button can refer to the same page but override the title to ‘New’ and ‘Edit’ respectively.

Layout

The layout that this page is based on.

URL

The URL of the page can be used to directly navigate to the page, e.g. from external links or bookmarks. It will be shown in the address bar of the browser when you visit the page. When navigating to a page without a URL configured, the last visited URL is shown. Note that the full URL of the page will be the base URL of your application followed by /p and then by the configured URL of the page, e.g. http://example.mendixcloud.com/p/home_page. Only pages that do not need an object can have a URL.

Visible for

The module roles for which the page is visible. This has effect on menu widgets and on buttons that are visible only if allowed. See, for example, the Edit button.

See also Module Security.

Pop-up Properties

The pop-up properties are only relevant for popup pages, as opposed to content pages.

Width (in pixels)

Specifies the pop-up width in pixels. When set to 0, the width is determined automatically.

Default value: 0

Height (in pixels)

Specifies the pop-up height in pixels. When set to 0, the height is determined automatically.

Default value: 0

Resizable

Specifies whether the pop-up is resizable (Yes) or fixed-size (No).

Default value: Yes

Close action

Configures the behavior of the popup close button (the little cross in the top-right corner). The default behavior of the popup close button is to rollback any changes and close the popup. If you want to customize the behavior of the popup close button, you can point to a button on the page. When the popup close button is clicked, it will then act as if the selected button is clicked. If the selected button is not available the popup close button will revert back to the default behavior.

Default value: Default (cancel)

Usage Properties

Mark as used

You can search for unused items (Ctrl+Shift+F, Search for = Unused items) in the Modeler. Pages that are only used from Java code will be listed as unused because the Modeler cannot look inside Java source code.

By setting the propery ‘Mark as used’ to ‘Yes’ you specify that the document is used implicitly and the Modeler will no longer list it when searching for unused items.

Default value: No