1
0
mirror of https://github.com/DataTables/DataTables.git synced 2024-12-01 13:24:10 +01:00

New: Add "processing" event

This commit is contained in:
Allan Jardine 2011-12-27 18:37:28 +00:00
parent dae243eb7a
commit 5a2d4f8782
3 changed files with 26 additions and 0 deletions

View File

@ -2869,6 +2869,8 @@
an[i].style.visibility = bShow ? "visible" : "hidden";
}
}
$(oSettings.oInstance).trigger('processing', [oSettings, bShow]);
}
@ -11189,6 +11191,17 @@
* @param {object} json The saved infromation from the local cookie
*/
/**
* Processing event, fired when DataTables is doing some kind of processing (be it,
* sort, filter or anything else). Can be used to indicate to the end user that
* there is something happening, or that something has finished.
* @name DataTable#processing
* @event
* @param {event} e jQuery event object
* @param {object} oSettings DataTables settings object
* @param {boolean} bShow Flag for if DataTables is doing processing or not
*/
/**
* Ajax (XHR) event, fired whenever an Ajax request is completed from a request to
* made to the server for new data (note that this trigger is called in fnServerData,

View File

@ -211,6 +211,17 @@
* @param {object} json The saved infromation from the local cookie
*/
/**
* Processing event, fired when DataTables is doing some kind of processing (be it,
* sort, filter or anything else). Can be used to indicate to the end user that
* there is something happening, or that something has finished.
* @name DataTable#processing
* @event
* @param {event} e jQuery event object
* @param {object} oSettings DataTables settings object
* @param {boolean} bShow Flag for if DataTables is doing processing or not
*/
/**
* Ajax (XHR) event, fired whenever an Ajax request is completed from a request to
* made to the server for new data (note that this trigger is called in fnServerData,

View File

@ -38,5 +38,7 @@ function _fnProcessingDisplay ( oSettings, bShow )
an[i].style.visibility = bShow ? "visible" : "hidden";
}
}
$(oSettings.oInstance).trigger('processing', [oSettings, bShow]);
}