Event reference pages: preDraw and draw

Event reference pages: preDraw and draw

pcmatthewpcmatthew Posts: 5Questions: 3Answers: 0

Hi,

I think the documentation is slightly out of date as the events seem to be triggered on 'preDraw.dt' and 'draw.dt' rather than the versions without '.dt'.

Pre-draw page: https://datatables.net/reference/event/preDraw
Draw page: https://datatables.net/reference/event/draw

Regards,
Matthew

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 20,150Questions: 26Answers: 4,736
    Answer ✓

    The need for .dt depends on when you establish the events. This example doesn't use .dt and works fine. But if trying to establish the events before Datatables is initialized then .dt is needed as seen in this example.

    Kevin

This discussion has been closed.