The Page is the container of the App's screen. FAB provides the header, content (body) and footer areas by default.
The page has the following properties:
- Id - unique identifier of the control
- Title - Text that will be displayed at the center of the Header area
- Header style - CSS properties can be defined here (e.g. background:#8ac43f)
- Custom footer - implement custom footer definition
Sample implementation of adding 2 buttons in the footer
<Toolbar class="x-colophon">
<ToolbarSpacer/>
<Button text="Use vendor details" enabled="true"
visible="true" type="Emphasized" press="executeFunction" cdata:function="goToInvoiceSearch(evt)"
icon="sap-icon://visits"/>
<Button text="Create New Vendor" enabled="true"
visible="true" type="Emphasized" press="executeFunction" cdata:function="AddNewVendor(evt)"
icon="sap-icon://sys-add"/>
</Toolbar> Logo src - image to be displayed in the right part of the Header area.
Add Logo to a FAB Form describes this in detail
- Use custom header - similar to Custom footer, a header definition can be implemented here
- 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.
- Enabled - set a boolean value or a variable with type boolean from the Model to control the enable property
- Visible - set a boolean value or a variable with type boolean from the Model to control the visibility property
- BackButton - toggles to show either logout and back button
- ShowActions - show/hide the footer and action buttons
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.
Step-by-step guide
How to add a Page
- Select the Project by clicking on it in the Project Structure.
- Right click on the Project component and select Add Page.
- The second Page is now available to use.
- Enter the properties as required
Related articles
Add Comment