From 817815359471f37a9bb7b4fddc4ec0b3e937e56b Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 19 Feb 2024 13:22:36 +0300 Subject: [PATCH] feat: add additional information display --- .../table-header/table-header.component.html | 7 ++++++- src/components/table-header/table-header.component.ts | 10 ++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/components/table-header/table-header.component.html b/src/components/table-header/table-header.component.html index c81c526..8baf580 100644 --- a/src/components/table-header/table-header.component.html +++ b/src/components/table-header/table-header.component.html @@ -1,6 +1,11 @@
- Расписание занятий +
+ Расписание занятий {{ additionalText }} + @if (dataText.length !== 0) { + {{ dataText }} + } +
Неделя: {{ startWeek | date:"shortDate" }} diff --git a/src/components/table-header/table-header.component.ts b/src/components/table-header/table-header.component.ts index fbf2d98..6e6914c 100644 --- a/src/components/table-header/table-header.component.ts +++ b/src/components/table-header/table-header.component.ts @@ -5,6 +5,13 @@ import {MatButton} from "@angular/material/button"; import {MatIcon} from "@angular/material/icon"; import {MatBadge} from "@angular/material/badge"; +export enum AdditionalText { + Group, + Professor, + LectureHall, + Other +} + @Component({ selector: 'app-table-header', standalone: true, @@ -19,6 +26,9 @@ import {MatBadge} from "@angular/material/badge"; }) export class TableHeaderComponent { + protected additionalText: string = ''; + protected dataText: string = ''; + @Input() startWeek!: Date; @Input() currentWeek!: number; @Output() weekEvent: EventEmitter = new EventEmitter();