• Resolved sjsperry

    (@sjsperry)


    Hi Tobias,
    It’s a great plugin with well organized code. I’ve made a donation to show my appreciation.

    I’m using https://tablepress.org/extensions/datatables-buttons/ and would like to make my own custom button to save the table as a csv file.

    Can you tell me what I have to do to mimic the behavior you have created for a button?

    Your button:
    <div class="dt-buttons"><a class="dt-button buttons-csv buttons-html5" tabindex="0" aria-controls="tablepress-1"><span>CSV</span></a></div>

    My button:
    <a href="official.csv"><h2 class="about-title button download>Download Full List</h2></a>

    • This topic was modified 9 years, 6 months ago by sjsperry.
Viewing 1 replies (of 1 total)
  • Plugin Author Tobias Bäthge

    (@tobiasbg)

    Hi,

    thanks for your question, and sorry for the trouble.

    From what I can see, you’d simply have to copy/paste the necessary HTML classes and apply those to your HTML code for a link, i.e. something like
    <div class="dt-buttons"><a class="dt-button" href="official.csv">Download Full List</a></div>

    Regards,
    Tobias

Viewing 1 replies (of 1 total)

The topic ‘Creating another CSV DataTable Button’ is closed to new replies.