How to use a link in TableTools instead of flash buttons

How to use a link in TableTools instead of flash buttons

rogcgrogcg Posts: 6Questions: 0Answers: 0
edited May 2012 in TableTools
Hello, I'm trying to find a way to change the buttons on TableTools. I'd like to use my own customized links intead of the flash buttons. Is there a way I can do that? Any good resource teaching me how to make that modification and still able to use the functionalities, like button collection, etc.

Thanks.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    > I'd like to use my own customized links intead of the flash buttons

    You can use the BUTTON or DIV tags by specifying the 'div' or 'text' button type (the sExtends option):
    http://datatables.net/extras/tabletools/buttons#div

    Allan
  • rogcgrogcg Posts: 6Questions: 0Answers: 0
    [quote]allan said: You can use the BUTTON or DIV tags by specifying the 'div' or 'text' button type (the sExtends option)[/quote]

    Thanks that helped a lot! But how do I handle the click, I mean, to set the type of file the div will generate like I was doing before.

    Thanks!
  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Using fnClick: http://datatables.net/extras/tabletools/button_options#fnClick . However, you can't generate a file using a non-Flash button (unless you use the download plug-in or something like that to kick the server into creating the file for you). It is possible to use the data:// protocol to create suitable files, but that isn't cross platform - hence the reason for using Flash.

    Allan
This discussion has been closed.