jQuery UI: How to use ui-widget-overlay by itself?

后端 未结 9 1682
独厮守ぢ
独厮守ぢ 2020-12-12 23:13

I am trying to create an overlay, similar to the one that jQuery UI Dialog uses. I can create the overlay like this:

var $overlay = $(\'
9条回答
  •  忘掉有多难
    2020-12-12 23:28

    It's very simple, to create overlay just use this code:

    var overlay = new $.ui.dialog.overlay();
    

    and when you have to destroy it use this code:

    overlay.destroy();
    

提交回复
热议问题