Datatables populatin rows like ajax but via function instead of an url
Datatables populatin rows like ajax but via function instead of an url
I'm managing to play with a backend service called Baasbox, it has javascript api subset that allow me to query the database via dedicated function and I'm interested to populate a table with datatables using this.
It would act like ajax, but I can't figure out if this is possibile with DT.
I'm trying to have something like:
1st page render the page call fox BB.loadCollection('db', function(res, err){ // use res to populate the table }); and retrieve totalitems + n°of pages
On click on page + I call again the BB.loadCollection querying for page 2, etc.