EasyUI method for implementing the second-layer pop-up box _ jquery

Source: Internet
Author: User
This article shares with you the method of using EasyUI to implement the second-layer pop-up box. the core code is provided by netizens. here, we have improved the content based on our project requirements and recommended it to you. This is the code used by netizens to expand EasyUI.

You can modify it as needed.

$. ModalDialog2.handler this handler represents the pop-up dialog handle
$. ModalDialog2.xxx: the xxx name can be defined by the user. it is mainly used to refresh the operation of some objects when the pop-up window is closed. you can predefine the xxx object.

The code is as follows:


$. ModalDialogTwo = function (options ){
If ($. modalDialogTwo. handler = undefined) {// avoid repeated pop-up
Var opts = $. extend ({
Title :'',
Width: 840,
Height: 680,
Modal: true,
OnClose: function (){
$. ModalDialogTwo. handler = undefined;
$ (This). dialog ('deststroy ');
},
OnOpen: function (){
// Parent. $. messager. progress ({
// Title: 'hup ',
// Text: 'loading data. please wait ....'
//});
}
}, Options );
Opts. modal = true; // force this dialog to be modeled, ignoring the passed modal parameter
Return $. modalDialogTwo. handler = $ ('

'). Dialog (opts );
}
};

The above is how to use EasyUI to implement the second-layer pop-up box. I hope you will like it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.