Add a buttons column...I'm not understanding how!
Add a buttons column...I'm not understanding how!
Hi to all, I've just seen many and many solutions for adding buttons for each row of my DataTables, can somebody help me ? this is my jQuery code. I'm not able to transform columns in defColums. Thx a lot!!!
'
$(function() {
$('#users-table').DataTable({
lengthMenu: [
[10, 25, 50, 100, -1],
[10, 25, 50, 100, "All"]
],
processing: true,
serverSide: true,
ajax: '{!! route('datatables.data') !!}',
columns: [
{ data: 'id', name: 'id' },
{ data: 'name', name: 'name' },
{ data: 'email', name: 'email' },
{ data: 'created_at', name: 'created_at' },
{ data: 'updated_at', name: 'updated_at' },
],
});
});
'
This question has an accepted answers - jump to answer
Answers
Maybe this example will help:
http://live.datatables.net/xijecupo/1/edit
If not then please provide a test case that shows what you are trying so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin