使用 office js displayDialogAsync 函数禁用桌面 Excel 上的背景 [英] Disable background on desktop Excel using office js displayDialogAsync function

查看:60
本文介绍了使用 office js displayDialogAsync 函数禁用桌面 Excel 上的背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用加载项清单文件在 Desktop office 365 上的任务窗格上运行应用程序.我们使用 office js DisplayDialogAsync 函数来打开对话框,即

We are using add-in manifest file to run application on taskpane on Desktop office 365. We have use office js DisplayDialogAsync function to open dialog box i.e.

Office.context.ui.displayDialogAsync('https://myDomain/myDialog.html', {height: 30, width: 20, displayInIframe: true}).

对话框也可以打开和关闭,但我们想通过单击桌面上 Excel 的背景来限制用户.如果有什么对我有帮助,请告诉我.由于缺少此功能,我们的生产受到影响.

Dialog box get open and close also but we want to restrict user by clicking on background of Excel on Desktop. Please do let me know if anything is helpful to me. Our production is getting effected by lack of this functionality.

推荐答案

displayDialogAsync 方法创建的对话框是非模态的.也许作为一种解决方法,您可以将高度和宽度设置为 100.这应该会导致对话框填满大部分屏幕,尽管它不会阻止用户移动对话框和单击其他内容.但是在对话框中有一个模态选项是个好主意.请在Office 开发者意见箱 中请求.

The dialog that is created by the displayDialogAsync method is non-modal. Perhaps as a workaround, you could set the height and width to 100. This should cause the dialog to fill most of the screen, although it won't prevent users from moving dialog and clicking on other things. But having a modal option to the dialog is a good idea. Please request it at Office Developer Suggestion Box.

这篇关于使用 office js displayDialogAsync 函数禁用桌面 Excel 上的背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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