Move excel button functionality to another button

Move excel button functionality to another button

Jeff23Jeff23 Posts: 8Questions: 3Answers: 0

Hello, I have a qustion regarding the buttons (Excel, Colvis).

1) Is it possible to move the functionality of the Excel button to another button,i.e, can I call a function from my other button that export the table to excel?

  1. For smal screen resolution, is it poissible to not display Excel/Colvis buttons?

//Jeff

Answers

  • Jeff23Jeff23 Posts: 8Questions: 3Answers: 0

    Like you can do with the search, but with the excel button intead.

    table.search($('#mySearchText').val()).draw();

  • allanallan Posts: 63,214Questions: 1Answers: 10,415 Site admin

    Yes - see the last example on this page.

    Allan

  • Jeff23Jeff23 Posts: 8Questions: 3Answers: 0

    Hello Alan, I do not fully understand how to do it. Can you give me a smal example?

  • colincolin Posts: 15,237Questions: 1Answers: 2,599

    In that example Allan pointed you to, you need to call the Excel's action function (which it does in that example) in the action function for another button.

    Colin

This discussion has been closed.