Created
April 25, 2017 11:07
-
-
Save fshchudlo/02c86e4bdbbba0f5505995bfdf573172 to your computer and use it in GitHub Desktop.
Example of simple grid for medium post about right-angled library
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<table class="table table-striped" [rtList]="getData" #list="rtList"> | |
<thead> | |
<tr> | |
<th>Id</th> | |
<th>Name</th> | |
<th>Price in USD</th> | |
<th>Is Discounted</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr *ngFor="let item of list.items"> | |
<td>{{item.Id}}</td> | |
<td>{{item.Name}}</td> | |
<td>{{item.Price}}</td> | |
<td><input type="checkbox" [checked]="item.IsDiscounted" /></td> | |
</tr> | |
</tbody> | |
</table> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment