jeudi 28 septembre 2017

Change CSS when model changes or DOM value changes in ember

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>
    
    <tr>
            <td></td>
            <td></td>

    </tr>
    
    </tbody>
    </table>

I need the color of the block “flight” change when the value updates.




Aucun commentaire:

Enregistrer un commentaire