on 2020 Mar 13 6:42 AM
Hi,
Have a requirement to highlight a tile (Generic Tile) based on a value in the model at run time (on load of the page and not on any press event). I know we can use CSS file to highlight the tile which I am able to do on press event but how to invoke a javascript function on load of this GenericTile and then add CSS class to it,..is what I am not getting. Below is what I have..
<GenericTile>
<tileContent>
<TileContent>
<Linktext="{path: 'oModel>Description'}"></Link>
</TileContent>
</tileContent>
</GenericTile>
Request clarification before answering.
You could try to use the custom data property like I do in this blog: https://blogs.sap.com/2016/08/02/dynamic-cell-color-of-sapuitabletable-using-xml-views/
but in your case in combination with a tile control
Kr. Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In my case, based on the Text value the GenericTile should be highlighted. So if <Link text = "true"/> then the GenericTile should automatically highlighted. If the value is false then those Generic Tiles should not be highlighted.
<GenericTile>
<tileContent>
<TileContent>
<Linktext="{path: 'oModel>Description'}"></Link>
</TileContent>
</tileContent>
</GenericTile>
User | Count |
---|---|
87 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.