Created
October 4, 2018 06:53
-
-
Save NeelBhatt/6052b5f1bf03b3dd7064205f3d242e1c to your computer and use it in GitHub Desktop.
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
<div class="grid-container"> | |
<h1 class="mat-h1">Dashboard</h1> | |
<mat-grid-list cols="2" rowHeight="350px"> | |
<mat-grid-tile *ngFor="let card of cards" [colspan]="card.cols" [rowspan]="card.rows"> | |
<mat-card class="dashboard-card"> | |
<mat-card-header> | |
<mat-card-title> | |
{{card.title}} | |
<button mat-icon-button class="more-button" [matMenuTriggerFor]="menu" aria-label="Toggle menu"> | |
<mat-icon>more_vert</mat-icon> | |
</button> | |
<mat-menu #menu="matMenu" xPosition="before"> | |
<button mat-menu-item>Expand</button> | |
<button mat-menu-item>Remove</button> | |
</mat-menu> | |
</mat-card-title> | |
</mat-card-header> | |
<mat-card-content class="dashboard-card-content"> | |
<div>Card Content Here</div> | |
</mat-card-content> | |
</mat-card> | |
</mat-grid-tile> | |
</mat-grid-list> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment