New Button equivalent to tabletools download?

New Button equivalent to tabletools download?

mcornermcorner Posts: 2Questions: 1Answers: 0

I have been using tabletools to download a zip file of data described by a table. Basically think of a list of things in a table, each row represents an underlying file. Hit the "download button" and I deliver a zip of those files to you.

This is what it looked like in tabletools.

tableTools: {
            sSwfPath: "/assets/dataTables/extras/swf/copy_csv_xls_pdf.swf"
            aButtons: [ 
                {
                    sExtends: "download"
                    sButtonText: "Download All Things"
                    sUrl: "things/zip"
                } 
            ]
        }

In the new Buttons extension, I don't see such a generic "download" button, just the csv, pdf, xls buttons. What can I use in the new Buttons extension to get the same functionality I got from extending download??

Thanks!

Answers

  • allanallan Posts: 61,946Questions: 1Answers: 10,158 Site admin

    The download button would need to be reformed to work with Buttons. There is custom button documentation available if you want to give it a go, otherwise I'll take a look as time allows.

    Allan

  • mcornermcorner Posts: 2Questions: 1Answers: 0

    Ah, bummer. I don't think I have the knowledge to put that together, but looking forward to it if you do end up building it. Thanks.

  • kevan.watkinskevan.watkins Posts: 22Questions: 5Answers: 0

    I am also using the TableTools Download plugin, and would like to move over to using Buttons.
    I will try to modify the Download plugin to work with buttons.
    If anyone has given this a go or has advice, please shout.

This discussion has been closed.