exportCSVReservations

This commit is contained in:
Mariela 2022-08-26 22:43:17 -06:00
parent 54ee6b9517
commit 7b7a3f27d2
1 changed files with 7 additions and 0 deletions

View File

@ -181,6 +181,12 @@ const Reservations = () => {
} }
} }
const exportCSV = () => {
dt.current.exportCSV();
selectedReservations.current.exportCSV();
};
const actionsReservation = (rowData) => { const actionsReservation = (rowData) => {
return ( return (
<div className="actions"> <div className="actions">
@ -255,6 +261,7 @@ const Reservations = () => {
label="Exportar" label="Exportar"
icon="pi pi-upload" icon="pi pi-upload"
className="p-button-help" className="p-button-help"
onClick={exportCSV}
/> />
</React.Fragment> </React.Fragment>
); );