Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 3c1172c7

Přidáno uživatelem Ondřej Váně před více než 4 roky(ů)

Úprava tabulky na stránce browse

Zobrazit rozdíly:

fe/fulltextsearch/src/app/components/pages/browse/table/table.component.html
16 16
      </td>
17 17
    </ng-container>
18 18

  
19
    <!-- Test Column -->
20
    <ng-container matColumnDef="originDate">
21
      <th mat-header-cell *matHeaderCellDef mat-sort-header>{{'app-table-browse.origin-date' | translate}}</th>
22
      <td mat-cell *matCellDef="let row">{{row.originDate | date:'d. M. yyyy'}}</td>
23
    </ng-container>
24

  
25
    <!-- Test Column -->
19
    <!-- Uploaded date Column -->
26 20
    <ng-container matColumnDef="uploadedDate">
27 21
      <th mat-header-cell *matHeaderCellDef mat-sort-header>{{'app-table-browse.uploaded-date' | translate}}</th>
28 22
      <td mat-cell *matCellDef="let row">{{row.uploadedDate | date:'d. M. yyyy'}}</td>
fe/fulltextsearch/src/app/components/pages/browse/table/table.component.ts
18 18
  dataSource: TableDataSource;
19 19

  
20 20
  /** Columns displayed in the table. Columns IDs can be added, removed, or reordered. */
21
  displayedColumns = ['id', 'documentName', 'originDate', 'uploadedDate'];
21
  displayedColumns = ['id', 'documentName', 'uploadedDate'];
22 22

  
23 23
  constructor( private queryService: QueryService ) { }
24 24

  
fe/fulltextsearch/src/app/model/DocumentResponse.ts
1 1
export class DocumentResponse {
2 2
  public id: number;
3 3
  public documentName: string;
4
  public originDate: Date;
5 4
  public uploadedDate: Date;
6 5
}

Také k dispozici: Unified diff