mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-18 16:54:14 +01:00
New: Send mDataProp to the server for server-side processing. This is very simialr to the sNames parameter, but more convient when already using mDataProp
This commit is contained in:
parent
e00e6d39e3
commit
a3718fa6a9
8
media/js/jquery.dataTables.js
vendored
8
media/js/jquery.dataTables.js
vendored
@ -3431,7 +3431,7 @@
|
||||
{
|
||||
_fnProcessingDisplay( oSettings, true );
|
||||
var iColumns = oSettings.aoColumns.length;
|
||||
var aoData = [];
|
||||
var aoData = [], mDataProp;
|
||||
var i;
|
||||
|
||||
/* Paging and general */
|
||||
@ -3443,6 +3443,12 @@
|
||||
aoData.push( { "name": "iDisplayLength", "value": oSettings.oFeatures.bPaginate !== false ?
|
||||
oSettings._iDisplayLength : -1 } );
|
||||
|
||||
for ( i=0 ; i<iColumns ; i++ )
|
||||
{
|
||||
mDataProp = oSettings.aoColumns[i].mDataProp;
|
||||
aoData.push( { "name": "mDataProp_"+i, "value": typeof(mDataProp)=="function" ? 'function' : mDataProp } );
|
||||
}
|
||||
|
||||
/* Filtering */
|
||||
if ( oSettings.oFeatures.bFilter !== false )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user