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:
parent
dae243eb7a
commit
5a2d4f8782
13
media/js/jquery.dataTables.js
vendored
13
media/js/jquery.dataTables.js
vendored
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -38,5 +38,7 @@ function _fnProcessingDisplay ( oSettings, bShow )
|
||||
an[i].style.visibility = bShow ? "visible" : "hidden";
|
||||
}
|
||||
}
|
||||
|
||||
$(oSettings.oInstance).trigger('processing', [oSettings, bShow]);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user