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.
@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.
Replies
http://www.datatables.net/examples/api/counter_column.html
@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