fnPagingInfo Ext for CamelCase Use? dataTable or DataTable?, beginner questions

fnPagingInfo Ext for CamelCase Use? dataTable or DataTable?, beginner questions

hawkmasterhawkmaster Posts: 56Questions: 20Answers: 0

Hello,
I am a beginner of DataTable. In the meantime I know that there are is a different in usage of dataTable and DataTable.

I also read the info about CamelCase and converting parameters.
https://datatables.net/upgrade/1.10-convert

But is there an advantage of using and creating datatable with CamelCase like DataTable() ?

In the past I used the old style:
oProjectTable = $("#projectdata").dataTable({

so I need
var aData = oProjectTable.fnGetData(nRow);
to get the data.

If I switch to :
oProjectTable = $("#projectdata").DataTable({
I need
var aData = oProjectTable.row(nRow).data();

Next Problem is: I have this fnPagingInfo extension, found in the forum.
$.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings )
{
return {
"iStart": oSettings._iDisplayStart,
"iEnd": oSettings.fnDisplayEnd(),
"iLength": oSettings._iDisplayLength,
"iTotal": oSettings.fnRecordsTotal(),
"iFilteredTotal": oSettings.fnRecordsDisplay(),
"iPage": Math.ceil( oSettings._iDisplayStart / oSettings._iDisplayLength ),
"iTotalPages": Math.ceil( oSettings.fnRecordsDisplay() / oSettings._iDisplayLength )
};
};

No with CamelCase usage I get the error:
fnPagingInfo is not a function

How can I use this extension also for CamelCase DataTable() ?

best regards
Hawk

This discussion has been closed.