partial selection model implementation

This commit is contained in:
jonaswinkler
2020-12-27 23:55:19 +01:00
parent 80420a99f5
commit b8e7506de4
7 changed files with 199 additions and 209 deletions

View File

@@ -30,9 +30,15 @@ export class DateDropdownComponent implements OnInit, OnDestroy {
@Input()
dateBefore: string
@Output()
dateBeforeChange = new EventEmitter<string>()
@Input()
dateAfter: string
@Output()
dateAfterChange = new EventEmitter<string>()
@Input()
title: string
@@ -83,6 +89,8 @@ export class DateDropdownComponent implements OnInit, OnDestroy {
}
onChange() {
this.dateAfterChange.emit(this.dateAfter)
this.dateBeforeChange.emit(this.dateBefore)
this.datesSet.emit({after: this.dateAfter, before: this.dateBefore})
}
@@ -91,12 +99,12 @@ export class DateDropdownComponent implements OnInit, OnDestroy {
}
clearBefore() {
this.dateBefore = null;
this.dateBefore = null
this.onChange()
}
clearAfter() {
this.dateAfter = null;
this.dateAfter = null
this.onChange()
}