# Tables

**URL:** <https://forum.inductiveautomation.com/t/tables/10990>\
**Category:** Ignition\
**Created:** [January 5, 2016, 6:44am UTC](https://forum.inductiveautomation.com/t/tables/10990 "2016-01-05T06:44:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![steven\_hargraves](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@steven\_hargraves](https://forum.inductiveautomation.com/u/steven_hargraves)\
**Post date:** [January 5, 2016, 6:44am UTC](https://forum.inductiveautomation.com/t/tables/10990/1 "2016-01-05T06:44:44Z")

</div>

Hello Forum  
I would like to set the foreground colour for text within a table based on an expression.  
For example, set the table row to red foreground  
if the column value \> event.source.parent.getComponent(‘myValue’).text,  
otherwise leave as black.  
Thanks and regrads  
Steve Hargraves

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [January 5, 2016, 2:59pm UTC](https://forum.inductiveautomation.com/t/tables/10990/2 "2016-01-05T14:59:01Z")

</div>

Use a Power Table and configure the “configureCell” extension function on the Power Table. That’s how to do it.

---

<div class="post-metadata">

**Author:** ![steven\_hargraves](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@steven\_hargraves](https://forum.inductiveautomation.com/u/steven_hargraves)\
**Post date:** [January 7, 2016, 11:31pm UTC](https://forum.inductiveautomation.com/t/tables/10990/3 "2016-01-07T23:31:05Z")

</div>

Thankyou Nick for the prompt reply.  
I have uncommented the supplied code & found that this is a useful tool.  
Do you have other code examples showing further use of the extension function capabilities ?  
Thanks again.  
Steve
