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

@Component({
    selector: 'exam-finance-list',
    templateUrl: './exam-finance-list.component.html',
    styleUrls: ['./exam-finance-list.component.scss'],
    changeDetection: ChangeDetectionStrategy.OnPush
})
export class ExamFinanceListComponent extends BaseList implements OnInit, OnChanges {
    @Input() examFinanceList: any = [];
    @Input() examFinanceListFalse: any = [];
    @Output() info = new EventEmitter();
    @Output() delete = new EventEmitter();
    @Output() tabIndex = new EventEmitter();
    column = ['1', '2', '3', '4', '5', '6'];
    constructor() {
        super();
     }

    ngOnInit(): void {
    }

    ngOnChanges(){
    }

    onTabChanged(event){
        // console.log(event)
        // this.index = event.index
        this.tabIndex.emit(event.index)
    }

    onInfo(id){
        this.info.emit(id);
    }

    onDelete(id){
        this.delete.emit(id);
    }

}
