Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82779

serverSide data from await function() ?

$
0
0

I want to source table data from an asynchronous javascript function that calls a remote REST Api. The Api accepts limit and offset request parameters but they are different from DataTable's draw/start/length (etc) request parameters. The Api returns data that I will need to reformat to match DataTable's draw/recordsTotal/recordsFiltered response parameters. So I will need to catch and modify outgoing and incoming Request and Response data.
So my question is this: Can I substitute DataTable's ajax method with something like
data: await api.getData(params) ?


Viewing all articles
Browse latest Browse all 82779

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>