1rosehip / jplist

jPList jQuery Data Grid Controls is a flexible jQuery plugin for sorting, pagination and filtering of any HTML structure (DIVs, UL/LI, tables, etc).
http://jplist.com
Other
437 stars 177 forks source link

BeforeFilter event handler #301

Closed mpomet closed 6 years ago

mpomet commented 6 years ago

Hello, I currently use jplist with ajax. The problem is I can't find any efficient way to display a spinner between each ajax request/response. The user should be informed when the app is "pending". This point is important because in some case the server may take few seconds or more to respond.

I tried to implement a workaround with jquery .ajaxStart(), but as the page have multiple ajax calls for others usage than jplist, It's starting to be awefull to handle jplist calls properly.

So is there any beforeFilter event handler that I can use ?

mpomet commented 6 years ago

Ok i've finally found it with the preloader control : https://raw.githubusercontent.com/1rosehip/jplist/master/dist/js/jplist.preloader-control.min.js