Created
March 7, 2018 05:37
-
-
Save jorgt/1838977f3a3473c2a583c0684164dd25 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var path = "/sap/bc/ui5_ui5/sap/zmp_i_posreq/"; | |
var modulePath = "com.riotinto.inbox.mp.positionrequest"; | |
jQuery.sap.registerModulePath(modulePath, _path); | |
jQuery.sap.require(modulePath + ".Component"); | |
//add container to whatever element. component data can only be set at constructor time | |
//so destroy and re-make if required. | |
var container = new sap.ui.core.ComponentContainer({ | |
name: modulePath, | |
component: modulePath, | |
settings: { | |
componentData: { | |
startupParameters: { | |
myParam: ["my-value"] | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment