Advanced redrawing a table or an alternative?
Advanced redrawing a table or an alternative?
Hi guys!
Sorry for asking for help again. I asked a similar question before not too long ago, however, this is a slightly different.
About two weeks ago I asked for some help to run a custom function continuously till it hits the end. Problem in that situation was the async/await function. Now I am still doing the same what not a big problem is. However, I need to draw the table a bit in advance before adding extra information.
In my codepen you will find a very similar situation and the buttons pretty much explain what I am trying to accomplish.
https://codepen.io/d19cannon/pen/bjXVJX?editors=1010
So in short, how do I update my entire table and not one page at a time like in the example of my 2nd button.
Thanks in advance!
Answers
Hi @D19cannon ,
Your code seems to be working with the data, rather than the table. You can use the DataTables API to manage the table and update the data, functions like
rows().every()
, or callbackscreatedRow
anddrawCallback
. It would be worth familiarising yourself with those in case that offers a better path.Cheers,
Colin