I am trying to use an array of objects as an input to Datatables. Each object in the array I want to be a row in the table. Is there a way of inserting the data without specifying the column names?
var table = $('#data_table_test').DataTable( {
"data": data,
"columns": [
{ "data": "GENE_NAME" },
{ "data": "FDR"},
],
dom: 'Bfrti',
deferRender: true,
scrollY: 420,
scrollX: true,
scroller: true,
buttons: [
'excel','csv'
],
order: [],
} );
This works because I am specifying the column names, but I can't figure out a way to insert the data without using the column names.