Hi,
is there an example how to use with a download Button?
something like this it does not work…
Button downloadBtn = new Button("Download as Excel");
downloadBtn.addClickListener(e -> new StreamResource("myFile.xlsx", Exporter.exportAsExcel(grid)));