blob: 5650e5d35b8f0a82590fa814ee87f91d6a120792 [file] [log] [blame]
Sonsino, Ofir (os0695)ff76b5e2018-07-10 15:57:37 +03001<table class="table table-hover table-striped table-sortable" [mfData]="options.data | dataFilter : filterQuery" #mf="mfDataTable" [(mfSortBy)]="options.config.sortBy" [(mfSortOrder)]="options.config.sortOrder" [mfRowsOnPage]="10">
2 <thead>
3 <tr>
4 <th *ngFor="let column of options.columns">
5 <mfDefaultSorter by="{{column.key}}"> {{column.displayName}}</mfDefaultSorter>
6 </th>
7 </tr>
8 </thead>
9 <tbody>
10 <tr *ngFor="let row of mf.data">
11 <td *ngFor="let column of options.columns" >
12 <button class="btn btn-primary" *ngIf="column.type==='button' && (!column.showCondition || row[column.showCondition])" title="{{column.text}}" (click)="clickBtn(row, column.action)">
13 {{column.text}}
14 </button>
15 {{row[column.key]}}
16 </td>
17 </tr>
18 </tbody>
19 <tfoot>
20 <tr>
21 <td colspan="5">
22 <mfBootstrapPaginator [rowsOnPageSet]="[10,15,20]"></mfBootstrapPaginator>
23 </td>
24 </tr>
25 </tfoot>
26</table>