jQueryUI effect and jqGrid

后端 未结 1 1513
鱼传尺愫
鱼传尺愫 2020-12-20 01:46

I have a site built using jQuery and jQueryUI. All dialogs are using the same effects for showing and hiding. However I am unable to set effect on those dialogs created by e

相关标签:
1条回答
  • 2020-12-20 02:26

    It's a good question!

    Internally jqGrid uses jqModal which will be as the part of jqGrid (as the module jqModal.js). To implement the animation effects you can overwrite the $.jgrid.showModal and $.jgrid.closeModal methods.

    The demo for example uses the following code

    $.extend($.jgrid, {
        showModal : function(h) {
            h.w.show("slow");
        },
        closeModal : function(h) {
            h.w.hide("slow").attr("aria-hidden", "true");
            if(h.o) {h.o.remove();}
        }
    });
    

    I think you can easy modify the code of above functions to implement the same effects for showing and hiding which you use on your site.

    0 讨论(0)
提交回复
热议问题