fnAddDataAndDisplay - How do I access the object it returns?

fnAddDataAndDisplay - How do I access the object it returns?

scoobyscooby Posts: 6Questions: 1Answers: 0
edited January 2011 in Plug-ins
I'm using this function here: http://datatables.net/plug-ins/api

It says that this function returns an object with the added TR element and it's index in aoData such that you could provide an effect (fade for example) to show which row has been added, but there are no examples on how to do so..

Would anybody out there happen to be able to give an example as to how to do so?

Thanks a bunch!

Replies

  • allanallan Posts: 61,667Questions: 1Answers: 10,096 Site admin
    To get the node:

    [code]
    var obj = oTable.fnAddDataAndDisplay( ... );
    var node = obj.nTr;
    [/code]
    Then you can apply whatever effect you want using jQuery etc ( http://api.jquery.com/category/effects/ ).

    Allan
  • scoobyscooby Posts: 6Questions: 1Answers: 0
    Thank you very much Allan! I really appreciate the quick response!
This discussion has been closed.