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

Changing Color of sap.m.Table Rows

$
0
0

Hi everybody,

 

I'm currently trying to change the background-color of a normal row inside a sap.m.Table.

I've already created a CSS which I added at the index.html.

The CSS contains the following class:

 

.day_background{     background-color: red;
}

I have acutally a few XML-Views and in one there's a sap.m.Table.

When I try to add the style to the control it seems not to work.

The adding is done by the following code:

 

oTable.addStyleClass("day_background");

My guess is that the XML-Views have lost the reference for the CSS file?

Looking forward to your answers!

 

Greetings

Stef


Viewing all articles
Browse latest Browse all 6178

Trending Articles



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