Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8556

Re: How to define CSS Class to change sap.m.table cell value text color

$
0
0

Hi,

 

I tried using below class.still changes didn't reflect but I think this approach is close to solution.

 

.columnStyle0 span{

          color : red !important;    

}


Please let me know whether I should add columnStyle0 as class name or columnStyle0 span as classname?


used below code to add class dynamically.


var items = sap.ui.getCore().byId("viewid").byId("table").getItems();

              for (i = 0; i < items.length; i++) {

            var item = items[i];           

           var obj = item.getBindingContext().getObject();

             if (obj.Status == 'Not Well') {

                  items[i].getCells()[0].addStyleClass('columnStyle0')

                 }

             else {items[0].getCells()[0].addStyleClass('columnStyle1');

              }

                 

        }

 

 

Regards,

Koti Reddy


Viewing all articles
Browse latest Browse all 8556

Trending Articles



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