SHARE
TWEET

Untitled

a guest Jul 18th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <table mat-table class="full-width-table" (matSortChange)="sortData($event)" [dataSource]="this.datasrcCollIndex" aria-label="Elements" matSort matSortActive="strName" matSortDirection="asc" matSortDisableClear>
  2.  
  3.         <!-- Name Column -->
  4.         <ng-container matColumnDef="strName">
  5.             <th mat-header-cell *matHeaderCellDef mat-sort-header>
  6.                 <mat-form-field style="margin-top: 0px;">
  7.                     <input matInput placeholder="Name" (keyup)="filteringByColumns()"  [(ngModel)]="strName" >
  8.                 </mat-form-field>
  9.             </th>
  10.             <td mat-cell *matCellDef="let user">{{user.strName}}</td>
  11.         </ng-container>
  12.  
  13.         <!-- Gender Column -->
  14.         <ng-container matColumnDef="strGender">
  15.             <th mat-header-cell *matHeaderCellDef mat-sort-header>
  16.                 <mat-form-field style="margin-top: 0px; width: 70px;">
  17.                     <input matInput placeholder="Gender" (keyup)="filteringByColumns()" [(ngModel)]="strGenderColumn">
  18.                 </mat-form-field>
  19.             </th>
  20.             <td mat-cell *matCellDef="let user">{{user.strGender}}</td>
  21.         </ng-container>
  22.  
  23.         <tr mat-header-row *matHeaderRowDef="this.dictstrDisplayedColumns"></tr>
  24.         <tr mat-row (click)="this.showDetailsOfUsers(user)"
  25.             *matRowDef="let user; columns: this.dictstrDisplayedColumns;"></tr>
  26.  
  27.     </table>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top