Only export visible rows? (display:none; NOT filtered by TableTools or DataTables)
Only export visible rows? (display:none; NOT filtered by TableTools or DataTables)
jacobsjensen
Posts: 1Questions: 0Answers: 0
Hi,
I've got an existing table where the only function I need from TableTools is to be able to save XLS files (csv).
I've got it working, but I've got an existing functions which sets some of the rows to display:none;.
How can I export only the visible rows?
(I don't want to remove any rows from the DOM! Because the user switches forth and back between hiding and showing some of the rows)
I've got an existing table where the only function I need from TableTools is to be able to save XLS files (csv).
I've got it working, but I've got an existing functions which sets some of the rows to display:none;.
How can I export only the visible rows?
(I don't want to remove any rows from the DOM! Because the user switches forth and back between hiding and showing some of the rows)
This discussion has been closed.
Replies
[quote]How can I export only the visible rows? [/quote]
You can use mColumns parameter to export only visible rows as follow:
"aButtons": [
{ "sExtends": "xls", "mColumns": "visible" }
]
I hope it will help you.