Add a buttons column...I'm not understanding how!

Add a buttons column...I'm not understanding how!

MarcoO96MarcoO96 Posts: 6Questions: 3Answers: 0
edited February 2019 in Free community support

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

This discussion has been closed.