Skip to content

Instantly share code, notes, and snippets.

@htammen
Forked from anonymous/index.html
Created September 26, 2015 05:47
Show Gist options
  • Save htammen/5c2c53554c7e1711604e to your computer and use it in GitHub Desktop.
Save htammen/5c2c53554c7e1711604e to your computer and use it in GitHub Desktop.
OpenUI5 Mobile Greenfield Example // source http://jsbin.com/fujevu/2
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>OpenUI5 Mobile Greenfield Example</title>
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m,sap.ui.layout,sap.ui.core"
data-sap-ui-theme="sap_bluecrystal">
</script>
<script type="text/javascript">
// GETTING STARTED WITH JSON model
//var jsonUri = "<json_uri>";
//var modelJSON = new sap.ui.model.json.JSONModel(jsonUri);
//sap.ui.getCore().setModel(modelJSON, "json");
// FIRST MOBILE PAGE
var page1 = new sap.m.Page({
title: "Start coding!"
});
// INSERT CODE INTO DIV
var app = new sap.m.App().addPage(page1).placeAt("content");
</script>
</head>
<body id="content" class="sapUiBody">
<script id="jsbin-source-javascript" type="text/javascript">
</script></body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment