Created
May 28, 2018 15:41
-
-
Save daniele-zurico/958951f69f868d4c699aa3c61f3cde44 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-cell *matCellDef="let element" [ngClass]="{'col-value': element.details === undefined}"> | |
<!-- expand caret --> | |
<span *ngIf="i === 0 && element.details"> | |
<span *ngIf="expandedElement && expandedElement[cols] === element[cols]; else plusIcon" class="expand-icon">▲</span> | |
<ng-template #plusIcon><span class="expand-icon">▼</span></ng-template> | |
</span> | |
<span>{{element[cols]}}</span> | |
</mat-cell> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment