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.