mirror of
https://github.com/dawidolko/Website-Templates.git
synced 2026-03-23 00:32:17 +00:00
Website templates
This commit is contained in:
26
startbootstrap-sb-admin-2-1.0.5/bower_components/datatables-plugins/api/fnprocessingindicator.js
vendored
Normal file
26
startbootstrap-sb-admin-2-1.0.5/bower_components/datatables-plugins/api/fnprocessingindicator.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* When doing some heavy processing of your own (for example using fnOpen with
|
||||
* data loading from the server) it can be useful to make use of the
|
||||
* 'processing' indicator built-into DataTables. This plug-in function exposes
|
||||
* the internal DataTables function so it can be used for exactly this.
|
||||
*
|
||||
* @name fnProcessingIndicator
|
||||
* @summary Show and hide the DataTables processing element through the API.
|
||||
* @author Allan Chappell
|
||||
*
|
||||
* @param {boolean} [onoff=true] Show (`true`) or hide (`false`) the processing
|
||||
* element.
|
||||
*
|
||||
* @example
|
||||
* var table = $('#example').dataTable();
|
||||
* table.fnProcessingIndicator(); // On
|
||||
* table.fnProcessingIndicator(false); // Off
|
||||
*/
|
||||
|
||||
jQuery.fn.dataTableExt.oApi.fnProcessingIndicator = function ( oSettings, onoff )
|
||||
{
|
||||
if ( onoff === undefined ) {
|
||||
onoff = true;
|
||||
}
|
||||
this.oApi._fnProcessingDisplay( oSettings, onoff );
|
||||
};
|
||||
Reference in New Issue
Block a user