Buttons (copy, csv, etc..) don't show in my datatable
Buttons (copy, csv, etc..) don't show in my datatable
alfasino9
Posts: 31Questions: 5Answers: 0
Hello,
I have tried to add to my DataTable the Buttons option to export, but they don't appear
You can view here the datatables -> http://comparador.masqueunaweb.com/buscador3.php
Thanks for any help.
Best regards
This question has accepted answers - jump to:
This discussion has been closed.
Answers
The browser's console shows this error:
"buttons.dataTables.min.css:1 Uncaught SyntaxError: Unexpected token {"
You have:
Since its not a JS script you will need to use something like this:
Kevin
Hello @kthorngren ! Nice to see you here :
I have changed your advice, but it doesn't work.
Now that error is not shown but the buttons still not appears
Thank you for your help as always!
You've got two Buttons arrays in the same DataTables configuration object:
and then later:
That's like having
and expecting
i
to be both 1 and 2. The second one will "win".You need to merge the two arrays together.
Allan
Thank you allan!
And how we can organize this 5 buttons into only one with dropdown the 5?
Thank you!
This example demonstrates how the
collection
button type can be used.Allan
Thank you, don't see it !!
Best regards