Closed ipesanz closed 6 years ago
Why?
File web/assets/js/custom.min.js
initializes buttons for the HTML element #datatable-buttons
. Copying HTML constitutes two elements with the same id
in a document tree.
Which way is this functionality configured?
Orginally initialization is done in a file named custom.js. Find a function init_DataTables()
. Remember that this app uses minified version of this file -> custom.min.js
For example:
datatable-buttons2
. tables_dynamic...
add script
Done.
This is only example. In a real scenario you should add another table from template, change the id and makes initialization in your preferable way (file, etc.). Of course you should read more on DataTable library.
If it is clear then please close this thicket.
Closing as not directly related to this repository and no activity.
Hi,
I'm trying to add the functionality of export (csv, Excel & PDF) to my application using your skeleton of DataTables
The trouble is because after copying twice the button example table on file:
tables_dinamyc.html.twig
it only shows buttons on first table.Why? Which way is this functionality configured?