Click here and follow my SAP UI5/FIORI snippets and information Page
If we load image by XML view ,It will not work in Launchpad.It will only work in local server.
I have made example for loading local image in Launchpad,below I have given small snippet.This is generic snippet for loading local image.Go through it and please let me know in case of any issue/doubt.
var modulePath=$.sap.getModulePath("PurDemo", "/image/"),
logoId=this.byId('logo');
logoId.setSrc(modulePath+"logo.png");
PurDemo=your component name
image=your image’s folder name
<Image id="logo" tooltip="Logo" width="100px" height="55px" src="image/logo.png"/>
No comments:
Post a Comment