Created
October 4, 2018 06:59
-
-
Save NeelBhatt/4a4e339ea76cf2837066ab347f449c67 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
<mat-grid-list> // Main grid container | |
// divides structure in small chunks | |
<mat-grid-tile *ngFor="let card of cards" [colspan]="card.cols" [rowspan]="card.rows"> | |
// Every chunks acts as card component | |
<mat-card class="dashboard-card"> | |
// Card Header | |
<mat-card-header> | |
<mat-card-title> | |
<mat-menu #menu="matMenu" xPosition="before"> | |
</mat-menu> | |
</mat-card-title> | |
</mat-card-header> | |
// Content of Card | |
<mat-card-content class="dashboard-card-content"> | |
<div>Card Content Here</div> | |
</mat-card-content> | |
</mat-card> | |
</mat-grid-tile> | |
</mat-grid-list> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment