I have a table and it gets the data from DS model which dynamically updates from the database. I need alert of color (css) change of the block( particular “td”) in UI when the data updates in the table.
Here is my code:
<table class="table table-bordered table-hover">
<thead>
<tr>
<th>C</th>
<th>Flight</th>
</tr>
</thead>
<tbody>
{{#each model as |flight|}}
<tr>
<td>{{ember-inline-edit value=flight.ACTUAL_COMPLEX onSave = (action "updateFlight" flight.id) onClose = (action "rollbackFlight" flight.id)}}</td>
<td>{{ember-inline-edit value=flight.FLTNUM onSave = (action "updateFlight" flight.id) onClose = (action "rollbackFlight" flight.id)}}</td>
</tr>
{{/each}}
</tbody>
</table>
I need the color change of background of the block (here “flight”) when the value updates.