on 2021 Dec 05 6:44 AM
Hi All,
I am trying to color a smart table row based on one column value. My smart table is getting data from O-DATA entity set. I am not able to access smart table column using "tr" in CSS. Is there any way we can achieve this?
Thanks in advance
Request clarification before answering.
Hi,
You have to give the smart table a special class. Then you can define the style of this class.
XML FILE
<smartTable:SmartTable class="privateSmartTableClass"
Style.css
---------
.privateSmartTableClass table tr {
background: red;
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Youre welcome. The link below will help you.
Thank you I had tried various options to identify row to set bg color and nothing has been working. Below are the list that I had tried ..Could you please let me know what am I missing here in CSS file
.myclass table tr[data-Col1 = " " ] (Col1 is directly from smart table)
.myclass table tr[data-CloCol1 = " " ] (Clocol1 is a custom column in XML file and it is cloned from smart table Col1)
.myclass table tr[data-KEY = " " ] (Clocol1 is a custom column in XML file and it is cloned from smart table Col1
KEY is defined as key in clocol1 creation )
User | Count |
---|---|
48 | |
9 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.