Because you’re setting the very general-scoped cells
styling, which is used as the “default” for any cells which don’t have their own style attributes defined in props.data
. You need to set the style for just one cell of data in props.data
by modifying the style
attribute of some “cell”. I’ve assisted with that ina. neighboring thread: Change style of cell (component Table) via script - Perspective - #13 by cmallonee
You shouldn’t be handling the logic like this.
What I recommend is you place all of the display logic into the table. If you need to update a value in the dataset, feel free to do so wherever, but let the Table itself resolve the binding and apply the display logic based on the new values.