How should I create this javascript columndefs
- data with php?
"columnDefs": [
{ "targets": [0,1], "searchable": false, "title": "column1"},
{ "targets": [2], "searchable": true, "title": "column2"}
]
the result should be
"columnDefs": data.ColumnDef //data.ColumnDef is generated outside the datatabletable object