-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to have Complex headers export to Excel and csv #764
Comments
Hello, Not possible with datatables. You can use the |
Close this for now as it's duplicated with #418 . |
Dear @Rohit1310 Feel free to check my fork at https://github.com/mtyszler/DT/tree/feature/complex_headers This fork is up-to-date with https://github.com/rstudio/DT master plus my complex_headers treatment. You can fork it yourself or simply install using If you prefer to copy, you only need:
which can be found at: https://github.com/mtyszler/DT/tree/feature/complex_headers/inst/htmlwidgets/lib/datatables-extensions/Buttons/js |
Also, @Rohit1310 , just be aware that the version I provided in DataTables/Buttons#170 is more complete, as it also handles complex footers, and the merges for pdf and print. But for excel and csv export this will suffice. |
Thanks @mtyszler for addressing the issue. |
I have been trying to export the datatable using the Button extention of DT with a complex header for example as below:
but I am getting only the last row in the header as below when exporting the datatable
I have searched alot but didn't got any satisfactory outcome.
I know this can be achieved using jquery but can you help me with some function in r.
Kindly help me to fix this issue.
By filing an issue to this repo, I promise that
xfun::session_info('DT')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/DT')
.I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered: