Skip to content

Instantly share code, notes, and snippets.

@htammen
Created June 13, 2017 07:39
Show Gist options
  • Save htammen/9cad0a1e8612792314680a31607ffe20 to your computer and use it in GitHub Desktop.
Save htammen/9cad0a1e8612792314680a31607ffe20 to your computer and use it in GitHub Desktop.
Expression Bindings // source http://jsbin.com/giwivi
<!DOCTYPE html>
<html>
<head>
<script
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
data-sap-ui-xx-bindingSyntax="complex">
</script>
<meta charset="utf-8">
<title>Expression Bindings</title>
</head>
<script id="view1" type="ui5/xmlview">
<mvc:View
controllerName="localctrl"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
xmlns:l="sap.ui.layout"
xmlns:f="sap.ui.layout.form">
<Page id="page" title="Mein Seitentitel">
<content>
<ObjectHeader
id="idObjectHeader"
title="01-A-FV2ss"
condensed="true"
responsive="true"
markFavorite="true"
showMarkers="true">
<attributes>
<ObjectAttribute text="Feuerverzinkung 2"/>
</attributes>
</ObjectHeader>
</content>
</Page>
</mvc:View>
</script>
<body class="sapUiBody" id="content"><script id="jsbin-javascript">
// SAPUI5 basic app
jQuery.sap.require('sap.ui.model.json.JSONModel');
sap.ui.controller("localctrl", {
onAfterRendering: function () {
// set explored app's demo model on this sample
var model = new sap.ui.model.json.JSONModel();
var data = {};
data.Birthday = new Date(1354665600000);
model.setData(data);
this.getView().setModel(model);
}
});
sap.ui.xmlview({
viewContent : jQuery("#view1").html(),
height: '500px'
}).placeAt("content");
</script>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<script
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
data-sap-ui-xx-bindingSyntax="complex">
<\/script>
<meta charset="utf-8">
<title>Expression Bindings</title>
</head>
<script id="view1" type="ui5/xmlview">
<mvc:View
controllerName="localctrl"
xmlns:mvc="sap.ui.core.mvc"
xmlns="sap.m"
xmlns:l="sap.ui.layout"
xmlns:f="sap.ui.layout.form">
<Page id="page" title="Mein Seitentitel">
<content>
<ObjectHeader
id="idObjectHeader"
title="01-A-FV2ss"
condensed="true"
responsive="true"
markFavorite="true"
showMarkers="true">
<attributes>
<ObjectAttribute text="Feuerverzinkung 2"/>
</attributes>
</ObjectHeader>
</content>
</Page>
</mvc:View>
<\/script>
<body class="sapUiBody" id="content"></body>
</html>
</script>
<script id="jsbin-source-javascript" type="text/javascript">// SAPUI5 basic app
jQuery.sap.require('sap.ui.model.json.JSONModel');
sap.ui.controller("localctrl", {
onAfterRendering: function () {
// set explored app's demo model on this sample
var model = new sap.ui.model.json.JSONModel();
var data = {};
data.Birthday = new Date(1354665600000);
model.setData(data);
this.getView().setModel(model);
}
});
sap.ui.xmlview({
viewContent : jQuery("#view1").html(),
height: '500px'
}).placeAt("content");
</script></body>
</html>
// SAPUI5 basic app
jQuery.sap.require('sap.ui.model.json.JSONModel');
sap.ui.controller("localctrl", {
onAfterRendering: function () {
// set explored app's demo model on this sample
var model = new sap.ui.model.json.JSONModel();
var data = {};
data.Birthday = new Date(1354665600000);
model.setData(data);
this.getView().setModel(model);
}
});
sap.ui.xmlview({
viewContent : jQuery("#view1").html(),
height: '500px'
}).placeAt("content");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment