monkey patching datatables function
monkey patching datatables function
Hi,
I was trying to monkey patch _fnUpdateInfo
[code]
function monkeyPatchTableInfo() {
$.fn.dataTable.prototype._fnUpdateInfo = function (oSettings) {
alert();
}
};
[/code]
Like this, but apparently that doesn't work as dt won't use the new function. I think I'm not looking for the function in the right place - $.fn.dataTable - but I have no clue on where it is defined.
Help would be appreciated :-)
Cheers,
Hugo
I was trying to monkey patch _fnUpdateInfo
[code]
function monkeyPatchTableInfo() {
$.fn.dataTable.prototype._fnUpdateInfo = function (oSettings) {
alert();
}
};
[/code]
Like this, but apparently that doesn't work as dt won't use the new function. I think I'm not looking for the function in the right place - $.fn.dataTable - but I have no clue on where it is defined.
Help would be appreciated :-)
Cheers,
Hugo
This discussion has been closed.
Replies
There is fnInfoCallback - http://datatables.net/usage/callbacks#fnInfoCallback - which might be of interest to you if you haven't looked at it already.
Allan
Thanks Allan!