generated content for a column with Ajax data source from objects
generated content for a column with Ajax data source from objects
I have a problem with generated content for a column, it is not working when using Ajax data source from objects, the buttons do not get rendred in the table. here my initialization code for the table:
var table = $('#example').DataTable( {
"ajax": 'http://localhost/two/test/api2',
"columns": [
{ "data": "name" },
{ "data": "adress" },
{ "data": "ID" }
],
"columnDefs": [ {
"targets": -1,
"data": null,
"defaultContent": "<button>Click!</button>"
} ]
} );
This question has an accepted answers - jump to answer
Answers
Maybe this will work for you:
Sorry if there is syntax errors
Kevin
Thank you for your help