[英]How to close office 365 taskpane from plugin javascript code?
I am creating an Office 365 plugin for outlook using NodeJS and javascript... I use OfficeJS library to interact with Outlook. 我正在使用NodeJS和javascript创建用于Outlook的Office 365插件...我使用OfficeJS库与Outlook进行交互。 My plugin appears in the Outlook taskpane.
我的插件出现在Outlook任务窗格中。 I want to have button in my plugin HTML.
我想在我的插件HTML中添加按钮。 When clicking on that button the taskpane must be closed.
单击该按钮时,必须关闭任务窗格。 Anybody knows how ?
有人知道吗? thank you !
谢谢 !
This feature is not available yet, but you will be able to add it into your add-in soon. 此功能尚不可用,但是您可以很快将其添加到外接程序中。 As of Office.js API level 1.5 you will be able to call the method "closeContainer()".
从Office.js API级别1.5开始,您将可以调用方法“ closeContainer()”。 Preview documantation is available at Office.context.ui.closeContainer()
预览文档可从Office.context.ui.closeContainer()获得。
EDIT: 编辑:
Office.context.ui.closeContainer() method is available at Mailbox 1.5 level API. Office.context.ui.closeContainer()方法在邮箱1.5级别的API中可用。 The supported host is limited to Outlook.
支持的主机仅限于Outlook。
Currently there is no support for any other hosts to open and close taskpain. 当前不支持任何其他主机打开和关闭Taskpain。 If you have strong requirements for this feature please consider up-vote the uservoice suggestion for Office developers.
如果对此功能有严格要求,请考虑对Office开发人员的用户声音建议进行投票。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.