Skip to content

Instantly share code, notes, and snippets.

@rakia
Created May 1, 2019 17:45
Show Gist options
  • Save rakia/b3e2d8bd5fc4662e743234ca46833a24 to your computer and use it in GitHub Desktop.
Save rakia/b3e2d8bd5fc4662e743234ca46833a24 to your computer and use it in GitHub Desktop.
<ng-container matColumnDef="name">
<th mat-header-cell *matHeaderCellDef> Name </th>
<td mat-cell (mousedown)="onMouseDown(i, 1, 'name')" (mouseup)="onMouseUp(i, 1, 'name')" *matCellDef="let element; let i = index"
[ngClass]="{'selected': selectedCellsState[i][1], 'unselected': !selectedCellsState[i][1]}">
{{element.name}}
</td>
</ng-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment