Extending callback

Extending callback

KorayKoray Posts: 2Questions: 2Answers: 0

Hi, i want to run a script for each table in my project that will run inside a callback (preDrawCallback in my case). This script will run even for the tables those attached that callback.
I tried $("..").on("fnPreDrawCallback", function(e){..}) but that does not work. Any suggestions?

Answers

  • allanallan Posts: 63,471Questions: 1Answers: 10,467 Site admin

    Try:

    $(...).on( 'preDraw', function () {
      ...
    } );
    

    You need to use the event names rather than the legacy function callback names. Although having said that, it looks like I've missed documented preDraw... Sorry! I'll get that added.

    Allan

This discussion has been closed.