on 06-14-2017 12:20 AM
Hi,
I wanted to get to know the basics of SAPUI5 and was trying the demo app @ Initialize the App
//
create a mobile app and display page1 initially
var app = new sap.m.App("myApp", { initialPage:
"page1"
});
The API reference for sap.m.App has two inputs, an ID and Settings. But here we pass a variable "initialPage". How does this work? How should I relate this with the API reference?
https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.m.NavContainer.html#constructor
it is from the parent.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The App class extends the parent class NavContainer. The association property of Nav container is "initialpage". This initial page property tells which should be the initial page to be loaded.
https://sapui5.hana.ondemand.com/#docs/api/symbols/sap.m.NavContainer.html#constructor
Regards,
Sharath
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is how I understand this:
Like you said the API reference for sap.m.App describes two Parameters. Their types are:
Parameters:
string sId? id for the new control, generated automatically if no id is given
object mSettings? initial settings for the new control
In the call
sId(string) = "myApp"
mSettings(Object) = { initialPage:"page1"}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.