in Ember Table, I need to change style of a cell with the change of particular cell content. I need to add color to cell with value update (that I have already done) and remove styles after 1 second (that I want to do).
I have called setTimeout
when applying color and removed color within setTimeout
. It does not work all the time. some cell colors are not removed.
(this gets worse when scrolling). I assume after 1 second, Ember cannot find the particular cell element.
I use and Ember table component and assigned a contentBinding
and columnBinding
. I added a template for the Ember.Table.TableCell
component and added class names.
Added Main Function and modified Jsbin example below.