Export report table to CSV file using defined delimiter (#1798)

Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
José Alberto Hernández
2023-07-20 21:14:18 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent dd4b37c060
commit 3b140e6f34
20 changed files with 230 additions and 90 deletions
@@ -0,0 +1,6 @@
export interface DialogData {
heading?: string;
dialogContext: any;
submitLabel?: string;
type: string;
}
+27
View File
@@ -0,0 +1,27 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class Dialogs {
constructor() { }
public setColor(dataType: string): string {
let color = 'primary';
switch (dataType) {
case 'Basic':
color = 'primary';
break;
case 'Mild':
color = 'primary';
break;
case 'Strong':
color = 'warn';
break;
default:
color = 'warn';
}
return color;
}
}