Ignore:
Timestamp:
07/29/20 19:46:21 (4 years ago)
Author:
Mile Jankuloski <mile.jankuloski@…>
Branches:
master
Children:
4e72684
Parents:
e42f61a
Message:

Prepared and improved components for data flows

Location:
Farmatiko/ClientApp/src/app/counter
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Farmatiko/ClientApp/src/app/counter/counter.component.html

    re42f61a rde18858  
    5353    <h2>Здравствени работници</h2>
    5454    <mat-form-field>
    55       <input matInput (keyup)="applyFilter($event.target.value)" placeholder="Пронајди работник">
     55      <input matInput (keyup)="applyFilterWorkers($event.target.value)" placeholder="Пронајди работник">
    5656    </mat-form-field>
    5757    </div>
     
    7777        </ng-container>
    7878
    79 
    80 
    8179          <tr mat-header-row *matHeaderRowDef="displayedColumnsWorkers"></tr>
    8280          <tr mat-row *matRowDef="let row; columns: displayedColumnsWorkers;"></tr>
  • Farmatiko/ClientApp/src/app/counter/counter.component.ts

    re42f61a rde18858  
    4949    filterValue = filterValue.toLowerCase();
    5050    this.dataSource.filter = filterValue;
     51  }
     52
     53  applyFilterWorkers(filterValue: string) {
     54    filterValue = filterValue.trim();
     55    filterValue = filterValue.toLowerCase();
    5156    this.dataSourceWorkers.filter = filterValue;
    5257  }
Note: See TracChangeset for help on using the changeset viewer.