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();