Call function into own created oPagination

Call function into own created oPagination

denisvaneckadenisvanecka Posts: 8Questions: 3Answers: 0
edited March 2017 in Free community support

Hi,

I have created 2 own pagination which uses same function fnClickHandler

$.extend($.fn.dataTableExt.oPagination, {
'custom_1': {
'fnClickHandler': function(e) {},
'fnInit': function (oSettings, nPaging, fnCallbackDraw) {},
'fnUpdate': function (oSettings, fnCallbackDraw) {}
},
'custom_2': {
'fnClickHandler': function(e) {},
'fnInit': function (oSettings, nPaging, fnCallbackDraw) {},
'fnUpdate': function (oSettings, fnCallbackDraw) {}
}
};

is possible create function outside function $.extend ?? How?

function is call, example:

$('<li><a href="#">1</a></li>').insertBefore($('li:last', an[i])[0]).click({'fnCallbackDraw':fnCallbackDraw, 'oSettings':oSettings, 'sPage':0}, this.fnClickHandler);

thanks

This discussion has been closed.