General Category > Suggest new features
Customise the "showLoading"
(1/1)
jplevene:
An option to customise the "Loading".
I would suggest being able to set classes, content and style, overriding the default or alternatively not having the default and calling our own function
For us we just want a specific spinning SVG that is a CSS class, wirth no words. We also need to mask the entire page, not just the grid.
Also, if we could have a way of hiding the standard "Loading" and showing our own. Sometimes while data is loading, we need to mask the entire page and do other things. For this we would need a showLoader event and hideLoader event
jplevene:
My current way of doing it is:
--- Code: ---(function($) {
var fn = $.paramquery._pqGrid.prototype;
fn.showLoading = function() {
if(this.$grid_center.is(":visible"))
{
this.loading = true;
open_loading_overlay();
}
};
fn.hideLoading = function() {
this.loading = false;
close_loading_overlay();
};
})(jQuery);
--- End code ---
It's not an issue to do above, but an easier way would be nice and it would be standard across versions.
Navigation
[0] Message Index
Go to full version