VSTS模态对话框关闭事件 [英] VSTS modal dialog close event

查看:79
本文介绍了VSTS模态对话框关闭事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在使用微软VSTS(https://docs.microsoft.com/en-us/vsts/user-guide/what-is-vsts?view=vsts) modal dialog (https://docs.microsoft.com/en-us/vsts/extend/reference/client/controls/modaldialog?view=vsts)
我想要从'x'关闭模态对话框时收到确认消息(模态对话框的关闭按钮),我得到关闭对话框后触发的关闭事件。


在关闭对话框之前我想要一个事件。我怎么能这样做?


这里是代码:

  VSS.getService(VSS.ServiceIds.Dialog).then(function(dialogService) )
{
var contributionId = // id
var dialogOptions = {title:" ABC",close:onDialogCloseByCrossButtonClick};
dialogService.openDialog(contributionId,dialogOptions).then (
函数(对话框){
//做点什么
});
}

决方案
<跨度风格="font-family:"宋体",无衬线; font-size:11pt">嗨kmes40505,


欢迎来到MSDN论坛。


看来你的问题是关于VSTS并参考这个

声明
,我们可以报告VSTS本身的问题

开发者社区 ,提供
a建议 
UserVoice ,获取有关  Stack
溢出
,获得支持   VSTS
支持
,谢谢你的理解。


BTW,你可以看一下
这个类似的问题
,我们现在似乎无法达到这个要求。




最好的问候,


萨拉


Hi,

I am using microsoft VSTS (https://docs.microsoft.com/en-us/vsts/user-guide/what-is-vsts?view=vsts) modal dialog (https://docs.microsoft.com/en-us/vsts/extend/reference/client/controls/modaldialog?view=vsts) and I want a confirmation message when modal dialog is closed from 'x' (closed button of modal dialog), I get close event which fired after dialog is closed.

I want an event before closing the dialog. How can I do that?

here is the code:

VSS.getService(VSS.ServiceIds.Dialog).then(function(dialogService) 
{ 
       var contributionId = //id 
       var dialogOptions = { title: "ABC", close: onDialogCloseByCrossButtonClick }; 
       dialogService.openDialog(contributionId, dialogOptions).then(
               function (dialog) {
                    // do something
        });
}

解决方案

Hi kmes40505,

Welcome to the MSDN forum.

It seems your issue is about the VSTS and refer to this declaration, we can report a problem with VSTS itself on Developer Community, provide a suggestion on UserVoice, get advice on Stack Overflow, and get support on VSTS Support, thank you for your understanding.

BTW, you can have a look at this similar issue and it seems we cannot achieve this requirement now.

Best regards,

Sara


这篇关于VSTS模态对话框关闭事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆