Event reference pages: preDraw and draw

Event reference pages: preDraw and draw

pcmatthewpcmatthew Posts: 2Questions: 2Answers: 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

Answers

  • kthorngrenkthorngren Posts: 8,082Questions: 25Answers: 1,816

    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

Sign In or Register to comment.