sap.ui.jsview("my_first_project.first", {
/** Specifies the Controller belonging to this View.
* In the case that it is not implemented, or that "null" is returned, this View does not have a Controller.
* @memberOf my_first_project.first
*/
getControllerName : function() {
return "my_first_project.first";
},
/** Is initially called once after the Controller has been instantiated. It is the place where the UI is constructed.
* Since the Controller is given to this method, its event handlers can be attached right away.
* @memberOf my_first_project.first
*/
createContent : function(oController) {
return new sap.m.Page({
title: "Title",
content: [
]
});
}
});
<core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
controllerName="sap.ui.myApp.controller.App" xmlns:html="http://www.w3.org/1999/xhtml">
<App id="rootControl">
</App>
</core:View>
{
"Type":"sap.ui.core.mvc.JSONView",
"controllerName":"view.aa",
"content": [{
"Type":"sap.m.Page",
"title":"Title",
"content":[
]
}]
}
<template data-controller-name="view.aa">
<div data-sap-ui-type="sap.m.Page" data-title="Title">
<div data-sap-ui-aggregation="content">
</div>
</div>
</template>
new sap.ui.core.mvc.View(sId?, mSettings?)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
54 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 |