-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComponent.js
More file actions
32 lines (23 loc) · 737 Bytes
/
Copy pathComponent.js
File metadata and controls
32 lines (23 loc) · 737 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/model/json/JSONModel"
], function (UIComponent, JSONModel) {
"use strict";
return UIComponent.extend("edukans.Component", {
metadata : {
manifest: "json",
handleValidation : true,
includes: ["css/customstyles.css"]
},
init : function () {
// call the init function of the parent
UIComponent.prototype.init.apply(this, arguments);
// create the views based on the url/hash
this.getRouter().initialize();
var oModelNewBox = new JSONModel();
this.setModel(oModelNewBox, "newBox");
var oModel = new JSONModel();
this.setModel(oModel);
}
});
});