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

@Component({
  selector: 'app-seat-change-test-information-list',
  templateUrl: './seat-change-test-information-list.component.html',
  styleUrls: ['./seat-change-test-information-list.component.scss'],
  changeDetection: ChangeDetectionStrategy.OnPush
})
export class SeatChangeTestInformationListComponent extends BaseList implements OnInit, OnChanges {
  column = ['1', '0', '2', '3', '4', '8', '9', '10', '5', '6', '7'];
  @Output() view = new EventEmitter();
  @Input() subjectList: any = [];
  constructor(){
    super();
  }

  ngOnInit(): void {
  }

  ngOnChanges(){
    this.subjectList = this.updateMatTable(this.subjectList ? this.subjectList : []);
  }

  onView(id){
    this.view.emit(id);
  }

}
