Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

Changing color of table cells

$
0
0

We have created a SAPUI5 application using the SAPUI5 "table" control and with a gateway service for oData and  I'd like to change the background color of the cells based on the data. If D1 red if D2 blue if D3 yellow.

 

So far I can do this only based on a menu event, click on a menu button to change the color. I've tried parsing the DOM with

 

document.getElementsByTagName(SPAN'), and looping thru the DOM and changing the background color but the data is not there until the bindrows has completed. I've tried window.onload and still the data is not there. Is there an event after when oTable.bindrows() gets the data?


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>