Class 

sap.m.App


About

App is the root element of a UI5 mobile application. It inherits from NavContainer and thus provides its navigation capabilities. It also adds certain header tags to the HTML page which are considered useful for mobile apps.


Use

Place as top Object for the Application and all other objects as child. Use sap.m.Page or sap.m.Carousel as child elements to the App object.





Navigation

Navigate between pages by using the methods:


// Available transitions currently include "slide" (default), "fade", "flip", and "show".

 

// Go to a new page

// Replace App to your App component and replace newPage to the new Page

App.to("nextPage");

 

 

// Change transition

App.to("nextPage", "show");

 

 

// Go to a previous page

// Replace App to your App component and replace prevPage to the previous Page

App.backToPage("prevPage");

 

 

// Change transition

App.backToPage("prevPage", "show");

 

 

// Go back

// Replace App to your App component and replace prevPage to the previous Page

App.back();

 

 

// Change transition

App.backToPage("prevPage", "show");




Reference


API


Testsuite