Color perspective table cell depending on value in another column

Hi,

To apply function or style to cells individually, you will need to provide this information in the data source. The data item should be an object that includes reserved keys and values, for example:

city: {

  value: 'Folsom',

  editable: true,

  style: {

    backgroundColor: 'grey',

    classes: [] | ''

  }
}

See: http://forum.inductiveautomation.com/t/feedback-new-perspective-table/ under data for more information.

Therefore, to get your desired result, you will have to transform your data so that the desired data item is an object containing the desired style based upon the value of another column/data item. You can accomplish this by applying a script transform via bindings.

Hope this helps.

-Yousuf

1 Like