How to add a callback for after table.ajax.reload()

How to add a callback for after table.ajax.reload()

pguardiariopguardiario Posts: 2Questions: 2Answers: 0

I want to call a function after the data loads to format it.
I'm hoping somebody has a better suggestion than setInterval.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Hi @pguardiario ,

    There's several ways to go. You can use xhr to get the data before the draw, or you can use the callback function within ajax.reload() which is called after the draw.

    Cheers,

    Colin

This discussion has been closed.