I have a custom javascript client that works with a remote API using ajax.
Suppose it to be MyApiClient like below:
var MyApiClient = function() {
this.Invoke = function (config, callback) {
// ...
}
}
How can I configure jQuery Datatables so that I can use MyApiClient rather than the built-in ajax working that jQuery Datatables provides internally?
That is, suppose for loading your remote data, you need to call your client this way:
var client = new MyApiClient();
client.Invoke({ url: '/api/app/v1/some-entity/all', function(result, err) {
// ...
}
});
Thank you already