on 06-16-2015 1:34 PM
Hi Experts,
I tried to put the Html code in GenericTile of Xml view, finally it shows output as empty block.
Please suggest me how to use HTML code in GenericTile , so finally it need to be display the output html view in GenericTile in XML view.
Sample code :
<s:GenericTile class="tile1"
header="header1"
frameType="TwoByOne">
<s:tileContent>
<s:TileContent footer="New Notifications">
<s:content>
<core:HTML content='<h4>Lorem ipsum</h4>'>
</core:HTML>
</s:content>
</s:TileContent>
</s:tileContent>
</s:GenericTile>
Thanks,
Nag
Like this,
<core:View controllerName="sap.hcm.Address" xmlns="sap.ui.commons" xmlns:core="sap.ui.core"
xmlns:html="http://www.w3.org/1999/xhtml">
<s:GenericTile class="tile1"
header="header1"
frameType="TwoByOne">
<s:tileContent>
<s:TileContent footer="New Notifications">
<s:content>
<Button text="Press Me. I am a SAPUI5 Button"/>
<html:button>No, press me. I am native HTML Button.</html:button>
</s:content>
</s:TileContent>
</s:tileContent>
</s:GenericTile>
<core:View>
Refer this link,
Using Native HTML in XML Views - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.