Class 

sap.m.Page


About

A page is a basic container for a mobile application screen. Usually one page is displayed at a time (in landscape mode or on tablets depending on the layout two pages might be displayed side-by-side).


Use

Place Page as child to sap.m.Appsap.m.SplitApp or sap.m.Carousel. The first page in the Object Tree will be the startpage.





Navigation

Navigate between pages by using the methods for the sap.m.App or sap.m.SplitApp


// 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");


// SplitApp - Master

App.toMaster("nextPage");

App.backMasterToPage("prevPage");


// SplitApp - Detail

App.toDetail("nextPage");

App.backDetailToPage("prevPage");



Reference


API