Created
June 22, 2016 17:43
-
-
Save ikiw/7bf71fb28deed30757ec02ddd2d7aea2 to your computer and use it in GitHub Desktop.
Load sapui5 explored component
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> | |
<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