cambiar a español el boton de exportar como excel
Some checks failed
PR Builder / Build-PR (pull_request) Failing after 25s

This commit is contained in:
Melina Gutierrez 2024-11-27 15:06:06 -04:00
parent 69ac876d58
commit fe517735ad

View File

@ -48,7 +48,7 @@ public class EmployeesListView extends BaseView {
StreamResource excelResource = new StreamResource("employees.xlsx", this::generateExcel); StreamResource excelResource = new StreamResource("employees.xlsx", this::generateExcel);
Anchor downloadLink = new Anchor(excelResource, "Export Employees"); Anchor downloadLink = new Anchor(excelResource, "Export Employees");
downloadLink.getElement().setAttribute("download", true); // Forzar descarga 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() { private ByteArrayInputStream generateExcel() {