javascript - How to refresh Datatable data from js array of objects -


I am using the jquery dataTables plugin to display an array of objects Clean and want to redo. However, the only way I am able to do this is to destroy and restart the table so far. I want to know that JS is an easy way to refresh from data sources. This is what I am doing, it works, but it seems wrong ...

  if (NAMESPACE.table) {NAMESPACE.table.destroy (); } {"Data"}, "type"}, {"data": "type"}, {{data}}, {{data}: {"data": filtered data, "column" Data ":" state "}]});  

Make it simple:

  NAMESPACE.table {"Data": {"data": "id"}, {"data": "type"}, {"data": {$ "data": "data": filtered data, "column": [ "City"}, {"data": "state"}], "destroyed": true});  

Comments