Last active
August 29, 2015 14:25
-
-
Save mitch-b/f47c4038220e81863ada to your computer and use it in GitHub Desktop.
Starting point for a JS Bin example for OpenUI5
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
<meta charset="UTF-8"> | |
<title>UI5 JSBin Template</title> | |
<script id="sap-ui-bootstrap" | |
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js" | |
data-sap-ui-theme="sap_bluecrystal" | |
data-sap-ui-libs="sap.m" | |
data-sap-ui-bindingSyntax="complex"> | |
</script> | |
<!-- XML-based view definition --> | |
<script id="view1" type="sapui5/xmlview"> | |
<mvc:View | |
controllerName="local.controller" | |
xmlns:mvc="sap.ui.core.mvc" | |
xmlns="sap.m"> | |
<Page title="Example"> | |
</Page> | |
</mvc:View> | |
</script> | |
<script> | |
sap.ui.controller("local.controller", { | |
onInit: function () { | |
} | |
}); | |
var oView = sap.ui.xmlview({ | |
viewContent: jQuery("#view1").html() | |
}); | |
oView.placeAt("content"); | |
</script> | |
</head> | |
<body class="sapUiBody" role="application" id="content"> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment