blob: 822d4e4a7ead6500c7664346883483a9375b0757 (
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
28
29
30
31
32
33
34
35
36
|
import { Component, OnInit } from '@angular/core';
import { MatDialogRef } from '@angular/material/dialog';
import { NullValueOptions } from 'src/app/_data/Experiment';
@Component({
selector: 'app-missingvalues-dialog',
templateUrl: './missingvalues-dialog.component.html',
styleUrls: ['./missingvalues-dialog.component.css']
})
export class MissingvaluesDialogComponent implements OnInit {
selectedMissingValuesOption?: NullValueOptions;
NullValueOptions = NullValueOptions;
constructor(public dialogRef: MatDialogRef<MissingvaluesDialogComponent>)
{
this.selectedMissingValuesOption = NullValueOptions.DeleteColumns;
}
ngOnInit(): void {
}
onNoClick() {
this.dialogRef.close();
}
withEnterKey(keyboardEvent: KeyboardEvent) {
if (keyboardEvent.code == "Enter" || keyboardEvent.code == "NumpadEnter")
this.onYesClick();
}
onYesClick() {
this.dialogRef.close(this.selectedMissingValuesOption);
}
}
|