first commit
This commit is contained in:
20
webapp/model/models.js
Normal file
20
webapp/model/models.js
Normal file
@ -0,0 +1,20 @@
|
||||
sap.ui.define([
|
||||
"sap/ui/model/json/JSONModel",
|
||||
"sap/ui/Device"
|
||||
],
|
||||
function (JSONModel, Device) {
|
||||
"use strict";
|
||||
|
||||
return {
|
||||
/**
|
||||
* Provides runtime information for the device the UI5 app is running on as a JSONModel.
|
||||
* @returns {sap.ui.model.json.JSONModel} The device model.
|
||||
*/
|
||||
createDeviceModel: function () {
|
||||
var oModel = new JSONModel(Device);
|
||||
oModel.setDefaultBindingMode("OneWay");
|
||||
return oModel;
|
||||
}
|
||||
};
|
||||
|
||||
});
|
Reference in New Issue
Block a user