我有一个表,它从 DS 模型中获取数据,该模型从数据库中动态更新。当表格中的数据更新时,我需要提醒用户界面中块的颜色(css)变化(特别是“td”)。
这是我的代码:
<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>
当值更新时,我需要块背景的颜色变化(这里是“飞行”)。