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.