exportCSVReservations
This commit is contained in:
parent
54ee6b9517
commit
7b7a3f27d2
|
@ -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>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue