Answer the question
In order to leave comments, you need to log in
How to call the Save As window?
Hello, the task is as follows:
when you click on the button, a CSV should be generated from the object + this file should be loaded, we managed to implement this:
import { CSVLink } from "react-csv";
<CSVLink
className="btn btn-secondary btn-download"
data={rows}
separator={";"}
filename={filename}
>
Download
</CSVLink>
Answer the question
In order to leave comments, you need to log in
Here is the finished demo. Only here xml and not csv, the first three lines will need to be corrected.
You cannot call this window manually. It can only be called by the user. You can make your own implementation of this window, but there you can only enter a name, and the file will be saved to the folder that is specified in the browser for downloads.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question