Callback when file is saved from Excel action (or access to FileSaver object)?

Callback when file is saved from Excel action (or access to FileSaver object)?

mrmccracmrmccrac Posts: 6Questions: 1Answers: 0

I would like to have an event fired after the user has downloaded an excel file. I believe FileSaver has an onwriteend function that you can set and it will call when a file has finished saving. Is there a way to get access to the FileSaver object in datatables to set this, or is there a better way to handle file save events?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 62,057Questions: 1Answers: 10,173 Site admin
    Answer ✓

    Good point! Currently, no, Buttons doesn't expose a callback or trigger an event for the "completed" action. I think it probably should. I'll look into that.

    Allan

  • mrmccracmrmccrac Posts: 6Questions: 1Answers: 0

    Thanks @allan, I do think it'd be useful for others to have this ability as well. Having a progress bar or loading screen etc. until the download finishes (particular when its an Ajax request) is one such use case. Let me know if you have any other questions/comments.

This discussion has been closed.