API and animations

API and animations

winzouwinzou Posts: 4Questions: 0Answers: 0
edited July 2011 in General
Hi there,

I'm using datatables greatly, thanks to this script.

But when I add or delete rows (via fnAddData and fnDeleteRow), they appear / disappear instantly, and my users don't have the time to see what is happening.
I haven't found a way to add something like a fadeIn('slow') to these actions. How can i manage to do this?

Thanks a lot.

Replies

  • fbasfbas Posts: 1,094Questions: 4Answers: 0
    edited July 2011
    just guessing, but you could probably call show/hide/fadein/fadeout animations on the row, then set fnDeleteRow on a timer. and something similar for fnAddData - first add the data, then immediately set the row to hide, then animate to show.

    but your suggestion is a good one. allan could easily add parameters to fnAddData and fnDeleteRow to use jquery animators and timings. maybe in DataTables 2? :D
This discussion has been closed.