Skip to content

Commit 067a094

Browse files
crisbetoandrewseguin
authored andcommitted
build: fix demo errors
Fixes a couple of runtime errors in the MDC table and MDC form field demos.
1 parent 9c38c2b commit 067a094

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed

src/components-examples/material-experimental/mdc-table/table-expandable-rows/table-expandable-rows-example.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@
55
<th mat-header-cell *matHeaderCellDef> {{column}} </th>
66
<td mat-cell *matCellDef="let element"> {{element[column]}} </td>
77
</ng-container>
8+
<ng-container matColumnDef="expand">
9+
<th mat-header-cell *matHeaderCellDef aria-label="row actions">&nbsp;</th>
10+
<td mat-cell *matCellDef="let element">
11+
<button mat-icon-button aria-label="expand row" (click)="(expandedElement = expandedElement === element ? null : element); $event.stopPropagation()">
12+
<mat-icon *ngIf="expandedElement !== element">keyboard_arrow_down</mat-icon>
13+
<mat-icon *ngIf="expandedElement === element">keyboard_arrow_up</mat-icon>
14+
</button>
15+
</td>
16+
</ng-container>
817

918
<!-- Expanded Content Column - The detail row is made up of this one column that spans across all columns -->
1019
<ng-container matColumnDef="expandedDetail">

src/components-examples/material/table/table-expandable-rows/table-expandable-rows-example.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
</ng-container>
88
<ng-container matColumnDef="expand">
99
<th mat-header-cell *matHeaderCellDef aria-label="row actions">&nbsp;</th>
10-
<td mat-cell *matCellDef="let element">
10+
<td mat-cell *matCellDef="let element">
1111
<button mat-icon-button aria-label="expand row" (click)="(expandedElement = expandedElement === element ? null : element); $event.stopPropagation()">
12-
<mat-icon *ngIf="expandedElement !== element">keyboard_arrow_down</mat-icon>
13-
<mat-icon *ngIf="expandedElement === element">keyboard_arrow_up</mat-icon>
12+
<mat-icon *ngIf="expandedElement !== element">keyboard_arrow_down</mat-icon>
13+
<mat-icon *ngIf="expandedElement === element">keyboard_arrow_up</mat-icon>
1414
</button>
1515
</td>
1616
</ng-container>

src/dev-app/mdc-input/mdc-input-demo.html

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -460,23 +460,11 @@ <h4>Textarea</h4>
460460

461461
<p>
462462
Multiple hints
463-
<mat-form-field appearance="fill" [color]="color" subscriptSizing="dynamic">
464-
<mat-label>Fill appearance</mat-label>
465-
<input matInput>
466-
<mat-hint>aaa</mat-hint>
467-
<mat-hint>bbb</mat-hint>
468-
<mat-hint>ccc</mat-hint>
469-
</mat-form-field>
470-
</p>
471-
472-
<p>
473-
Multiple hints with differing alignment
474463
<mat-form-field appearance="fill" [color]="color" subscriptSizing="dynamic">
475464
<mat-label>Fill appearance</mat-label>
476465
<input matInput>
477466
<mat-hint>aaa</mat-hint>
478467
<mat-hint align="end">bbb</mat-hint>
479-
<mat-hint align="end">ccc</mat-hint>
480468
</mat-form-field>
481469
</p>
482470

0 commit comments

Comments
 (0)