Please update the documentation for fnDrawCallback

Please update the documentation for fnDrawCallback

sd_zuosd_zuo Posts: 78Questions: 1Answers: 0
edited November 2010 in General
That function can take at least one parameter. But the documentation page says it takes nothing.
Please update the documentation for it and other similar functions.

Replies

  • quytennisquytennis Posts: 14Questions: 0Answers: 0
    +1 Need to understand more about parameters for fnDrawCallback. This example has oSettings has parameter:

    http://www.datatables.net/examples/api/counter_column.html
  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    @sd_zuo - wowzer - I clean missed this post back when it was made! fnDrawCallback does now have the parameter passed into it documented, but the example doesn't show that. I've just committed the change and the documentation will be updated with the 1.9.1 release.

    @quytennis - Yes the DataTables settings object is passed in to fnDrawCallback. Also remember that like all DataTables callbacks it is executed with the DataTables instance's scope, so you could use this.fnSettings() to get the settings object even if it wasn't passed in.

    Allan
This discussion has been closed.