i would like to color the table text

hello, i would like to conditional format text only. When I use the color rules, it just colors the background. Is there a way to do this?

Tagged:

Best Answer

  • ArborRose
    ArborRose Coach
    Answer ✓

    Domo's ability to color text in cells is pretty limited. But you can work around it. One way would be to use an HTML table with custom formatting.

    This thread may give some insight:

    https://community-forums.domo.com/main/discussion/67852/html-table-conditional-formatting

    I believe you can also do the following:

    <p style="color: 
    {{#if (condition)}}
    red;
    {{else}}
    green;
    {{/if}}">
    Your conditional text here
    </p>
    <p style="color: {{#if (data > 50)}} green; {{else}} red; {{/if}}">
    Your metric value is: {{data}}
    </p>

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

Answers

  • ArborRose
    ArborRose Coach
    Answer ✓

    Domo's ability to color text in cells is pretty limited. But you can work around it. One way would be to use an HTML table with custom formatting.

    This thread may give some insight:

    https://community-forums.domo.com/main/discussion/67852/html-table-conditional-formatting

    I believe you can also do the following:

    <p style="color: 
    {{#if (condition)}}
    red;
    {{else}}
    green;
    {{/if}}">
    Your conditional text here
    </p>
    <p style="color: {{#if (data > 50)}} green; {{else}} red; {{/if}}">
    Your metric value is: {{data}}
    </p>

    ** Was this post helpful? Click Agree or Like below. **
    ** Did this solve your problem? Accept it as a solution! **

  • mroker
    mroker Member

    Does this text go into beast mode? Not working for me.