# Cell Color in Perspective Table

**URL:** <https://forum.inductiveautomation.com/t/cell-color-in-perspective-table/50966>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 14, 2021, 6:04pm UTC](https://forum.inductiveautomation.com/t/cell-color-in-perspective-table/50966 "2021-09-14T18:04:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [September 14, 2021, 6:28pm UTC](https://forum.inductiveautomation.com/t/cell-color-in-perspective-table/50966/2 "2021-09-14T18:28:47Z")

</div>

> [@Change style of cell (component Table) via script - Perspective](https://forum.inductiveautomation.com/t/change-style-of-cell-component-table-via-script-perspective/44573/2):
>
> Hi @truonghaibk94 this may be best done in a script transform of the database binding. You can loop through the dataset and form an array of dictionaries for each element like this: data [ { "colTitle1": { "value": "SomeValue", "style": { "backgroundColor": "#F7901D", "classes": "SomeClass" } }, "colTitle2": { "value": "SomeValue2", "style": { "backgroundColor": "#FFFFFF", "classes": "SomeClass" } } } { …

---

_[View the full topic](https://forum.inductiveautomation.com/t/cell-color-in-perspective-table/50966)._
