Created
August 13, 2014 08:06
-
-
Save pandu536/e3d6feb49b8ec9131de8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.sap.declare("ZGreenfield.Component"); | |
sap.ui.core.UIComponent.extend("ZGreenfield.Component", { | |
createContent : function() { | |
// create root view | |
var oView = sap.ui.view({ | |
id : "App", | |
viewName : "ZGreenfield.greenfield_refinery.launchdashboard", | |
type : "JS", | |
viewData : { component : this } | |
}); | |
// Using a local model for offline development | |
var oModel = new sap.ui.model.json.JSONModel("jsonFiles/."); | |
oView.setModel(oModel); | |
// done | |
return oView; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment