Column Visibility using RTL column
Column Visibility using RTL column
domondon1
Posts: 2Questions: 1Answers: 0
Hi i have a question is this is possible in datatable plugin
I have created a sample test for it
https://live.datatables.net/koqinevo/1/edit
will the problem of this i have a column visibility button and pdf button (the pdf have rtl, that will reverse the header to right to left)
so when i selected a column that is visible, but when you download the pdf the column still there
Answers
In the
exportOptions
you havecolumns: [5,4,3,2,1,0]
. So those columns will always be exported. Usecolumns: ':visible'
if you only want the visible columns to be exported.Allan
Hi allan, i want the column to reverse at the same time only those are visible
I see what you mean. I'm not sure there is actually a way to do that at the moment.
That said, perhaps the PDF export should obey
dir="rtl"
on thehtml
element? I see that it currently isn't: https://live.datatables.net/koqinevo/2/edit .I've been increasingly thinking of dropping the PDF creation with pdfmake recently. Instead I'd have a window pop open and the user would use the system's "Print to PDF" ability. That would make RTL table support for PDF export much easier (if
dir="rtl"
is being used).Is your whole page RTL?
Allan