fnProcessingIndicator
fnProcessingIndicator
talkitivewizard
Posts: 30Questions: 0Answers: 0
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.
[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.
This discussion has been closed.
Replies
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
Allan Chappell.
Thanks for putting that up there. I hope I can contribute more/better things in the future.
Looking forward to your future code clips ;-)
Allan