Changeset a6bbad1 for Farmatiko/ClientApp
- Timestamp:
- 07/31/20 21:01:19 (4 years ago)
- Branches:
- master
- Children:
- c406ae5
- Parents:
- 58fa654 (diff), c73269d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- Farmatiko/ClientApp/src/app
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Farmatiko/ClientApp/src/app/counter/counter.component.html
r58fa654 ra6bbad1 10 10 <input matInput (keyup)="applyFilter($event.target.value)" placeholder="Пронајди установа"> 11 11 </mat-form-field> 12 </div> 13 <table [dataSource]="dataSource" mat-table matSort class="mat-elevation-z8"> 12 </div> 13 <table [dataSource]="dataSource" mat-table matSort class="mat-elevation-z8"> 14 <ng-container matColumnDef="id"> 15 <th mat-header-cell *matHeaderCellDef mat-sort-header> id </th> 16 <td mat-cell *matCellDef="let facilities"> {{facilities.id}} </td> 17 </ng-container> 18 19 <ng-container matColumnDef="createdOn"> 20 <th mat-header-cell *matHeaderCellDef mat-sort-header> createdOn </th> 21 <td mat-cell *matCellDef="let facilities"> {{facilities.createdOn}} </td> 22 </ng-container> 23 24 <ng-container matColumnDef="deletedOn"> 25 <th mat-header-cell *matHeaderCellDef mat-sort-header> deletedOn </th> 26 <td mat-cell *matCellDef="let facilities"> {{facilities.deletedOn}} </td> 27 </ng-container> 28 14 29 <ng-container matColumnDef="Име"> 15 30 <th mat-header-cell *matHeaderCellDef mat-sort-header> Име </th> … … 45 60 <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> 46 61 </table> 47 <mat-paginator #paginator [pageSize]=" 5" [pageSizeOptions]="[5, 10, 20, 100]"></mat-paginator>62 <mat-paginator #paginator [pageSize]="100" [pageSizeOptions]="[5, 10, 20, 100]"></mat-paginator> 48 63 </div> 49 64 </mat-tab> -
Farmatiko/ClientApp/src/app/counter/counter.component.ts
r58fa654 ra6bbad1 1 import { Component, OnInit, ViewChild, Inject } from '@angular/core';1 import { Component, OnInit, ViewChild, Inject, Input } from '@angular/core'; 2 2 import { HttpClient } from '@angular/common/http'; 3 3 import { HealthFacilities } from '../models/HealthFacilities'; … … 13 13 }) 14 14 export class CounterComponent implements OnInit { 15 publicfacilities: HealthFacilities[];15 @Input() facilities: HealthFacilities[]; 16 16 public workers: HealthcareWorkers[]; 17 displayedColumns = [' Име','Општина','Адреса', 'Тип', 'Е-пошта', 'Телефон'];17 displayedColumns = ['id','createdOn','deletedOn','Име','Општина','Адреса', 'Тип', 'Е-пошта', 'Телефон']; 18 18 displayedColumnsWorkers = ['Име','Гранка','Установа', 'Назив']; 19 19 dataSource = new MatTableDataSource<HealthFacilities>(); 20 20 dataSourceWorkers = new MatTableDataSource<HealthcareWorkers>(); 21 21 22 @ViewChild(MatPaginator, {static: true}) paginator: MatPaginator;22 @ViewChild(MatPaginator, {static: false}) paginator: MatPaginator; 23 23 @ViewChild(MatSort) sort: MatSort; 24 24 … … 41 41 this.dataSource.paginator = this.paginator; 42 42 this.dataSource.sort = this.sort; 43 this.dataSourceWorkers.paginator = this.paginator;44 this.dataSourceWorkers.sort = this.sort;45 43 } 46 44 -
Farmatiko/ClientApp/src/app/shared/material.module.ts
r58fa654 ra6bbad1 75 75 MatTabsModule, 76 76 MatToolbarModule, 77 MatTooltipModule 77 MatTooltipModule, 78 MatFormFieldModule 78 79 ], 79 80 exports: [ … … 113 114 MatTabsModule, 114 115 MatToolbarModule, 115 MatTooltipModule 116 MatTooltipModule, 117 MatFormFieldModule 116 118 ] 117 119 })
Note:
See TracChangeset
for help on using the changeset viewer.