import {Component, OnInit, ChangeDetectionStrategy, OnChanges, Input} from '@angular/core';
import {BaseList} from '../../../../../core/base/base-list';

@Component({
  selector: 'app-setting-exam-view-table-calendar',
  templateUrl: './setting-exam-view-table-calendar.component.html',
  styleUrls: ['./setting-exam-view-table-calendar.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class SettingExamViewTableCalendarComponent extends BaseList implements OnInit, OnChanges {
  @Input() calendarList: any = [];

  column = ['1', '2', '3', '4'];
  constructor() {
    super();
  }

  ngOnInit(): void {
  }

  ngOnChanges(){
    console.log(this.calendarList);
    this.calendarList = this.updateMatTable(this.calendarList ? this.calendarList : []);
  }

}
