Home > Forum > Tips&Tricks > Data table filed - rows coloring

Data table filed - rows coloring
1

Hi,

Do you know how to make rows in a 'Data table' field colorful? I get some data from subworkflows by the table field and I want to color some rows depending on their status: open - blue, closed-green ...
Is there such posibility?

MVP
In reply to: Martin Meze (Freelancer)

Hi Darek,

You can start from Daniel's tutorial. It's not colors, rather icons (which can have different colors):
https://daniels-notes.de/posts/2021/little-excel-helpers#creating-multilingual-icon-html-tags

Let me know if that works for you or if you need additional help.

Best regards,
Martin

Hi Darek,

the simplest way for your case could be the following:
Add an html field where you define the css style.

#SEL_SQLGrid_728 td[data-column="WFD_Signature"] {
font-weight: bold;
}
#SEL_SQLGrid_728 tr:nth-child(odd) { background: yellow; }


Replace the ID 728 with a reference of the field and change the name of the column accordingly.

Best regards,
Daniel

Did you know that with WEBCON you can automate virtually any process? Even baking cookies 🍪
 
Speaking of cookies: we use the ones that are essential for our website to function properly, as well as additional ones that help us customize our content to your preferences. If you don’t mind cookies, click Accept. If you want to learn more, explore settings.
Settings