Skip to content

Instantly share code, notes, and snippets.

@ikiw
Created June 22, 2016 17:43
Show Gist options
  • Save ikiw/7bf71fb28deed30757ec02ddd2d7aea2 to your computer and use it in GitHub Desktop.
Save ikiw/7bf71fb28deed30757ec02ddd2d7aea2 to your computer and use it in GitHub Desktop.
Load sapui5 explored component
<!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">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script>
jQuery.sap.registerModulePath("sap.m.sample.LinkSubtle", "https://openui5.hana.ondemand.com/test-resources/sap/m/demokit/sample/LinkSubtle/");
jQuery.sap.registerModulePath("sap.ui.demo.mock", "https://openui5.hana.ondemand.com/test-resources/sap/ui/demokit/explored");
var oResult = sap.ui.component.load({
name: "sap.m.sample.LinkSubtle",
async: true
});
oResult.then(function() {
var oComp = sap.ui.component({
name: "sap.m.sample.LinkSubtle"
});
new sap.m.Shell({
app: new sap.ui.core.ComponentContainer("CompCont1", {
component: oComp
})
}).placeAt("content");
});
</script>
</head>
<body>
<div id="content"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment