blob: 3940907518c4765e577910f0b95970460b3b8f50 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import { Component, EventEmitter, Input, Output } from '@angular/core'
import { Params } from '@angular/router'
export type AdvancedInputFilter = {
label: string
queryParams: Params
}
@Component({
selector: 'my-advanced-input-filter',
templateUrl: './advanced-input-filter.component.html',
styleUrls: [ './advanced-input-filter.component.scss' ]
})
export class AdvancedInputFilterComponent {
@Input() filters: AdvancedInputFilter[] = []
@Output() resetTableFilter = new EventEmitter<void>()
@Output() search = new EventEmitter<Event>()
onSearch (event: Event) {
this.search.emit(event)
}
onResetTableFilter () {
this.resetTableFilter.emit()
}
}
|