These are chat archives for angular/material

16th
Mar 2018
Luke Crooks
@crooksey
Mar 16 2018 11:55
Anyone know how I can force dynamic rendered content into a certain grid list? Example here: https://stackblitz.com/edit/angular-cccnjp-3dieg1?file=app%2Fsidenav-responsive-example.html
    <mat-grid-list cols="2"  rowHeight="8:1">
    <mat-grid-tile>
        <mat-grid-tile-header>Clocked In</mat-grid-tile-header>
    </mat-grid-tile>
    <mat-grid-tile >
        <mat-grid-tile-header>Clocked Out</mat-grid-tile-header>
    </mat-grid-tile>

    <!-- render this inside Clocked In Column -->
    <mat-grid-tile *ngFor="let user of usersIn">
        <button mat-raised-button color="accent">
            {{user}}
        </button>
    </mat-grid-tile>

    <!-- render this inside Clocked out Column -->
    <mat-grid-tile *ngFor="let user of usersOut">
        <button mat-raised-button color="warn">
            {{user}}
        </button>
    </mat-grid-tile>

</mat-grid-list>
Filip Białek
@fbialek
Mar 16 2018 12:46
hi there! can anybody share with me sass function or mixin for generating sass map with custom map for material color palette? so basically I would like to have a sass function that I can pass one color and it returns whole map with a palette.