Page - Expert
To provide more flexibility in defining a Page, an expert mode is available. In this type of page, the Header, Content (Body) and Footer should and can be defined in a more customized way.
Core properties of the Page - Expert:
- Id - unique identifier of the control
OnLoad - a JavaScript function can be set here which will be called on the initial load of the Page. Typical use of this is for initialization of values.
Additional Page Events that can be assigned with Javascript functions- More.. - opens up the More Properties Dialog Screen
Advanced - properties of the control not available in the above list can be added here.
Setting Additional Properties provides further information about the Advanced property.
More Properties Dialog Screen
- title - Text that will be displayed at the center of the Header area
- titleLevel - choose from the available options from sap.ui.core.TitleLevel. Leaving it blank will set it to value Auto as a default.
- showNavButton - A nav button will be rendered on the left area of header bar if this property is set to true. Set a boolean value or a variable with type boolean from the Model to control the showNavButton property
- showHeader - set a boolean value or a variable with type boolean from the Model to control the showHeader property
- showSubHeader - set a boolean value or a variable with type boolean from the Model to control the showSubHeader property
- navButtonTooltip - tooltip of the NavButton
- enableScrolling - set a boolean value or a variable with type boolean from the Model to control the enableScrolling property
- backgroundDesign - set a background color by choosing the values from sap.m.PageBackgroundDesign
- showFooter - set a boolean value or a variable with type boolean from the Model to control the showFooter property
- contentOnlyBusy - set a boolean value or a variable with type boolean from the Model to control the contentOnlyBusy property
- floatingFooter - set a boolean value or a variable with type boolean from the Model to control the floatingFooter property
- navButtonPress - this event is fired when Nav Button is pressed
Areas of Page - Expert
- Header - This is where Page Header UI elements can be added. Sections of a header are Content Left, Content Middle and Content Right.
- Content (Body) - This is where most of the UI Elements are added/defined. The content can be treated similar on how to add UI Elements on a Page as described in How to add UI elements to the App
- Footer - Page Footer is defined here (e.g. Buttons for specific actions or navigation)
Step-by-step guide
How to add a Page - Expert
- Select the Project by clicking on it in the Project Structure.
- Right click on the Project component and select Add Page (Expert).
- The second Page is now available to use.
- Right click on the page to add the Header, Content and Footer
Related articles
IQX Business Solutions - FAB 2.40