arreglar-funcionalidad #84
@ -48,7 +48,7 @@ public class EmployeesListView extends BaseView {
|
||||
StreamResource excelResource = new StreamResource("employees.xlsx", this::generateExcel);
|
||||
Anchor downloadLink = new Anchor(excelResource, "Export Employees");
|
||||
downloadLink.getElement().setAttribute("download", true); // Forzar descarga
|
||||
return new Button("Export to Excel", e -> getCurrentPageLayout().add(downloadLink));
|
||||
return new Button("Exportar como Excel", e -> getCurrentPageLayout().add(downloadLink));
|
||||
}
|
||||
|
||||
private ByteArrayInputStream generateExcel() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user