All files / src/app/components/custom-views custom-views.component.html

100% Statements 23/23
100% Branches 0/0
100% Functions 0/0
100% Lines 12/12

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  188x   188x     2x 2x 2x   2x   21x 20x 1x   2x   2x 2x  
<div class="container">
    <p-table [value]="customViews" [tableStyle]="{ 'min-width': '50rem' }" [paginator]="true" [rows]="10"
    [rowsPerPageOptions]="[10, 20, 50]" [showCurrentPageReport]="true"
    currentPageReportTemplate="{first} - {last} of {totalRecords} custom user views" [rowHover]="true">
        <ng-template #header>
            <tr>
                <th pSortableColumn="name">Name <p-sortIcon field="name"></p-sortIcon></th>
                <th>Action</th>
            </tr>
        </ng-template>
        <ng-template #body let-customViews>
            <tr>
                <td [routerLink]="['/customViews/', customViews.id]">{{ customViews.name }}</td>
                <td [routerLink]="['/customViewsBuilder/', customViews.id]"><button class="button is-inline-flex is-warning is-small" id="editView">Edit View</button></td>
            </tr>
        </ng-template>
    </p-table>
 
    <button class="button is-info is-small" disabled="disabled" id="addView">Feature coming soon</button>
</div>