如何在 md-dialog 上叠加 md-dialog
How can I superpose an md-dialog on md-dialog
我试图从一个打开的 md-dialog 中打开一个 md-dialog,但问题是当第二个 md-dialog 打开时第一个 md-dialog 关闭了
// the controller of the first popUp
class popUpOneController{
constructor($mdDialog){
this.$mdDialog=$mdDialog;
.
.
.
}
others methods codes......
// the second $mdDialog to be opened from the first
// this function will be executed by clicking on a html button
openPopUp2(){
// here we call a component into the $mdDialog
this.$mdDialog.show({
template: '<interlo-sibel data-to-pass='+data+' index-selectedElm='+index+' type='+type+' ></interlo-sibel>',
targetEvent: event,
escapeToClose: false
})
}
popUpOneController.$inject=['$mdDialog'];
export default popUpOneController
我找到了答案,我们刚刚添加了以下属性'skipHide: true'
openPopUp2(){
// here we call a component into the $mdDialog
this.$mdDialog.show({
template: '<interlo-sibel data-to-pass='+data+' index-selectedElm='+index+' type='+type+' ></interlo-sibel>',
targetEvent: event,
skipHide: true
})
}
plunker 上的演示 link:https://plnkr.co/edit/jaDD79A1JII4XKhXP64Y?p=preview
我试图从一个打开的 md-dialog 中打开一个 md-dialog,但问题是当第二个 md-dialog 打开时第一个 md-dialog 关闭了
// the controller of the first popUp
class popUpOneController{
constructor($mdDialog){
this.$mdDialog=$mdDialog;
.
.
.
}
others methods codes......
// the second $mdDialog to be opened from the first
// this function will be executed by clicking on a html button
openPopUp2(){
// here we call a component into the $mdDialog
this.$mdDialog.show({
template: '<interlo-sibel data-to-pass='+data+' index-selectedElm='+index+' type='+type+' ></interlo-sibel>',
targetEvent: event,
escapeToClose: false
})
}
popUpOneController.$inject=['$mdDialog'];
export default popUpOneController
我找到了答案,我们刚刚添加了以下属性'skipHide: true'
openPopUp2(){
// here we call a component into the $mdDialog
this.$mdDialog.show({
template: '<interlo-sibel data-to-pass='+data+' index-selectedElm='+index+' type='+type+' ></interlo-sibel>',
targetEvent: event,
skipHide: true
})
}
plunker 上的演示 link:https://plnkr.co/edit/jaDD79A1JII4XKhXP64Y?p=preview