Update: Opciones de exportar
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import { Component, signal } from '@angular/core';
|
||||
import { MatDialogModule, MatDialogRef } from '@angular/material/dialog';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
|
||||
export type ExportFormat = 'pdf' | 'excel';
|
||||
|
||||
@Component({
|
||||
imports: [MatDialogModule, MatIconModule],
|
||||
selector: 'app-export-results-dialog',
|
||||
styleUrl: './export-results-dialog.scss',
|
||||
templateUrl: './export-results-dialog.html',
|
||||
})
|
||||
export class ExportResultsDialog {
|
||||
readonly selection = signal<ExportFormat | null>(null);
|
||||
|
||||
constructor(private readonly dialogRef: MatDialogRef<ExportResultsDialog>) {}
|
||||
|
||||
select(format: ExportFormat): void { this.selection.set(format); }
|
||||
close(): void { this.dialogRef.close(); }
|
||||
}
|
||||
Reference in New Issue
Block a user