EasyUI implements the second-level pop-up box, And easyui implements the second-level

Source: Internet
Author: User

EasyUI implements the second-level pop-up box, And easyui implements the second-level

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.

Copy codeThe 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 = $ ('<div/>'). dialog (opts );
}
};

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

Related Article

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.