From 7b7a3f27d209a8dd302869ca282f6ed54becade9 Mon Sep 17 00:00:00 2001 From: Mariela Date: Fri, 26 Aug 2022 22:43:17 -0600 Subject: [PATCH] exportCSVReservations --- web-ui/web-react/src/components/Reservaciones.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web-ui/web-react/src/components/Reservaciones.js b/web-ui/web-react/src/components/Reservaciones.js index 8b570531..a9829fb8 100644 --- a/web-ui/web-react/src/components/Reservaciones.js +++ b/web-ui/web-react/src/components/Reservaciones.js @@ -181,6 +181,12 @@ const Reservations = () => { } } + const exportCSV = () => { + dt.current.exportCSV(); + selectedReservations.current.exportCSV(); + }; + + const actionsReservation = (rowData) => { return (
@@ -255,6 +261,7 @@ const Reservations = () => { label="Exportar" icon="pi pi-upload" className="p-button-help" + onClick={exportCSV} /> );