HostDialogService - 模态对话框自定义按钮访问 [英] HostDialogService - Modal Dialog custom button access
问题描述
你好
我在做什么TFS的扩展,我发现以下问题:
$
在托管模式对话框中,类型扩展是否可以访问自定义按钮?
在以下文档中,可以执行updateOkButton方法来更新"确定"按钮的状态
DialogService.openDialog(contributionId,dialogOptions).then(function(dialog){
//设置true / false以启用/禁用ok按钮
  ;    Dialog.updateOkButton(true);
});
$
但是如果像我一样,我会创建与标准不同的按钮(Ok,Cancel) 如以下定义所示:
DialogService.openDialog (contributionId, dialogOptions) .then (function (dialog) {
// Set true / false to enable / disable ok button
Dialog.updateOkButton (true);
});
But what happens if like me, I have created buttons different from the standard (Ok, Cancel) as in the following definition:
推荐答案
Hi Nortic ,
Hi Nortic,
感谢您发布此处。
我试图让熟悉这个主题的人参与进一步研究这个问题。可能会有一些时间延迟。感谢你的耐心。
最好的问候
Limitxiao Gao
Limitxiao Gao
这篇关于HostDialogService - 模态对话框自定义按钮访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!