adding dashbord
This commit is contained in:
26
pdb-js/src/app/dashboard-page/dashboard-page.component.html
Normal file
26
pdb-js/src/app/dashboard-page/dashboard-page.component.html
Normal file
@@ -0,0 +1,26 @@
|
||||
|
||||
<div class="toolbar">
|
||||
<button mat-stroked-button (click)="createNewDashboard()">New</button>
|
||||
</div>
|
||||
<div *ngIf="loading">
|
||||
loading
|
||||
</div>
|
||||
<div *ngIf="!loading">
|
||||
<table mat-table [dataSource]="dataSource" >
|
||||
|
||||
<!-- Name Column -->
|
||||
<ng-container matColumnDef="name">
|
||||
<th mat-header-cell *matHeaderCellDef> Name </th>
|
||||
<td mat-cell *matCellDef="let element"><a [routerLink]="['/dashboard', element.id]">{{element.name}}</a></td>
|
||||
</ng-container>
|
||||
<!-- Description Column -->
|
||||
<ng-container matColumnDef="description">
|
||||
<th mat-header-cell *matHeaderCellDef>Description</th>
|
||||
<td mat-cell *matCellDef="let element">{{element.description}}</td>
|
||||
</ng-container>
|
||||
|
||||
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
||||
<tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user