Has anyone used Editor/Datatables with Meteor?
Has anyone used Editor/Datatables with Meteor?
daveboo
Posts: 1Questions: 1Answers: 0
Seems like it would be similar to knockout if you use ViewModel for meteor?
This discussion has been closed.
Answers
Never heard of meteor... or knockout..
It should be quite possible to do, but I'm not aware of anyone having published instructions for how to do it. The one key issue you might run into when using a view model is that DataTables and Editor generally expect a JSON response - not HTML (assuming that is what the view returns). The JSON can be used to convey error messages as well as the final result, which is why this approach is taken. The view happens in Javascript for DataTables.
Allan
I'm interested too in knowing how to integrate DataTables into Meteor, specifically into a React component. I installed the npm package, then imported the datatables module, but Meteor doesn't seem to recognise DataTables (??)