mercredi 13 juin 2018

How to use multiple conditions using #if while forming a Table in ember JS?

I am forming a Table dynamically using Ember

How can i use nested if while forming the table

Something like this


                            <td> Hai  </td>
                            
                                <td> Bye </td>
                        

My code

<script type="text/x-handlebars" data-template-name="index">
   <table class="table table-striped table-condensed">
    <thead>
        <tr>
            <th>Participant</th>
        </tr>
    </thead>
    <tbody id="ParticipantList">
        
            <tr>
                <td> </td>
                <td> </td>
                
                     <td><img src="image.jpg" alt="Remove" ></td>
                
            </tr>
        
    </tbody>
   </table>
</script>

http://jsfiddle.net/6Evrq/1937/




Aucun commentaire:

Enregistrer un commentaire