show only export buttons

show only export buttons

you2525you2525 Posts: 23Questions: 5Answers: 0

Hello,
I was wondering how to hide the datatable ( the table, the search bar etc. ) and only show the dt-buttons for export (copy, pdf, excel...)?
Thank you !

Replies

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

    You can use dom to hide most of the elements (it always shows the table though), and then hide the table itself in initComplete - see here.

    Colin

  • you2525you2525 Posts: 23Questions: 5Answers: 0

    ok thank you !

This discussion has been closed.