DataTables logo DataTables

Plugin or Core? Modal div on bProcessing
  • Hi everyone, I've been building this feature today and was wondering if you guys feel it should belong to _core_ or it should be built as a _plugin_. I've reached Allan on the subject and he's not sure so he asked me to ask you.

    Here's the link for the code. https://github.com/DataTables/DataTables/pull/25

    Let us know what you guys think. Would love some feedback. Thanks guys.
  • Thanks for this function I too need a modal processing while server side action is processing to prevent user interaction.. thanks but how do I call it?
  • Very certainly a plug-in for this kind of think I would say. There are a number of options for how to build a plug-in for this, but possibly the cleanest way is with a new feature I've just added for 1.9 - the 'processing' event. What you could do is bind to the processing event and effectively replace the built=in processing option (indeed, what could/should be done with the plug-in is to use sDom for it: http://datatables.net/blog/Creating_feature_plug-ins ). That way you would just initialise it by using the sDom parameter with the new plug-in feature letter.

    To bind events to DataTables you just use jQuery.bind - for example $('#example').bind('processing', function () {...} );

    Allan
This discussion has been closed.
All Discussions

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.