fnProcessingIndicator

fnProcessingIndicator

talkitivewizardtalkitivewizard Posts: 30Questions: 0Answers: 0
edited March 2010 in General
I found myself needing to use the processing bar for the datatables because I was ajaxing information into a fnOpen(), so I wrote this super simple plugin that exposes that functionality.

[code]
jQuery.fn.dataTableExt.oApi.fnProcessingIndicator = function ( oSettings, onoff )
{
if(typeof(onoff)=='undefined')
{
onoff=true;
}
this.oApi._fnProcessingDisplay( oSettings, onoff );
}
*/Example usage:

Turn on
oTable.fnProcessingIndicator()

Turn off
oTable.fnProcessingIndicator(false);
*/
[/code]

Hope this helps someone else out.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Hi talkivewizard,

    It's taken me a while to getting around to doing this... but I've finally got it up on the plug-ins page: http://datatables.net/plug-ins/api#fnProcessingIndicator . Thanks for posting it :-).

    Give me a shout if you would like the credit for the function changed at all.

    Regards,
    Allan
  • talkitivewizardtalkitivewizard Posts: 30Questions: 0Answers: 0
    Sure, If you don't mind putting my real name up there I would be thrilled.
    Allan Chappell.

    Thanks for putting that up there. I hope I can contribute more/better things in the future.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Certainly - it is now done :-)

    Looking forward to your future code clips ;-)

    Allan
This discussion has been closed.