import {Component, EventEmitter, Input, Output} from '@angular/core'; import {Fraction} from '../../../utils/fraction.enum'; @Component({ selector: 'cc-list-filter', templateUrl: './list-filter.component.html', styleUrls: ['./list-filter.component.scss'] }) export class ListFilterComponent { @Input() filterButtons: any[]; @Input() addButton: any; @Output() executeSearch = new EventEmitter(); @Output() openAddFrom = new EventEmitter(); readonly fraction = Fraction; constructor() { } execute(group) { this.executeSearch.emit(group); } add() { this.openAddFrom.emit(); } }