datatables using javascript source
datatables using javascript source
dulitul
Posts: 2Questions: 2Answers: 0
I am trying to implement a simple dataTables example usung javascript object as a datasource following the template https://datatables.net/reference/option/data (second example). Please see code below:
$("#dynamicScenarioTblContainer div:last table").DataTable({ //initialize table with extras
"data" : [{"NoData": "no data"}],
"columns": [{ "data" : "NoData" }]
});
Although the code seems to follow the same logic as the example I am getting
'Uncaught TypeError: Cannot read property 'length' of undefined'
Any ideas?
This discussion has been closed.