I have an ember hbs component, in which we have table, in which the value of a td should be decided depending upon the value of the previous td, here is my hbs code, any help please?
<div class="row">
<div class="col-md-12">
<table class="table table-striped">
<thead>
<tr>
<th>Notice#</th>
<th>Type</th>
<th>Violation</th>
<th>Inspection Item</th>
<th>
Action
</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td> </td>
<td>
(VIN#:
)
<br />
</td>
<td>
<br />
</td>
<td>
<div class="btn btn-xs btn-default" onclick=>
<i class="fa fa-eye"></i>
View Notice
</div>
<div class="btn btn-xs btn-default" onclick=>
<i class="fa fa-file"></i>
Generate Investigation
</div>
<div class="btn btn-xs btn-default" onclick=>
<i class="fa fa-edit"></i>
Edit Notice
</div>
</td>
</tr>
</tbody>
</table>
<div class="well text-center no-margin">
Click here to add a Notice.
</div>
<div class="well text-center no-margin">
No notices...
</div>
</div>
</div>
In the above code, the model.result.items has Violation element, how can I display the novi.itemNum for the novv.ViolationNumber that is displayed, any help please - thanks in advance.
Aucun commentaire:
Enregistrer un commentaire