feat: add additional information display

This commit is contained in:
Polianin Nikita 2024-02-19 13:22:36 +03:00
parent b8a591c1ca
commit 8178153594
2 changed files with 16 additions and 1 deletions

View File

@ -1,6 +1,11 @@
<div class="app-table-header">
<div class="mat-h4">
Расписание занятий
<div style="justify-content: flex-start; flex-wrap: wrap">
<span style="margin-right: 5px">Расписание занятий {{ additionalText }}</span>
@if (dataText.length !== 0) {
<span style="color: var(--mdc-checkbox-selected-icon-color);">{{ dataText }}</span>
}
</div>
</div>
<div class="mat-h3">
Неделя: {{ startWeek | date:"shortDate" }}

View File

@ -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<boolean | null> = new EventEmitter<boolean | null>();