简体   繁体   English

如何从插件JavaScript代码关闭Office 365 Taskpane?

[英]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.

相关问题 来自javascript的office 365 graph api:如何正确验证 - office 365 graph api from javascript: how to properly authenticate 如何从Office365中的JavaScript API获取重复数据 - How to get recurrence data from JavaScript API in office365 如何从office-JS内部确定调用按钮或打开任务窗格的ID - How to determine the ID of the invoking button or open taskpane from inside office-JS 通过JavaScript在Office 365上使用REST远程访问Sharepoint 2013 - Remotely accessing Sharepoint 2013 using REST on Office 365 from JavaScript 从Javascript刷新Office365授权令牌 - Refresh Office365 Authorization Token from Javascript 如何使用javascript连接到Office 365 Outlook日历 - how to connect to office 365 outlook calender using javascript 如何从桌面身份验证SharePoint Online(Office 365) - How to authenticate SharePoint Online(Office 365) from desktop 如何从Office365中的CHAR中获取ASCII - How get ASCII from CHAR in Office365 如何从邮箱获取Office 365 Outlook的文件夹名称 - How to get office 365 outlook's folders name from a mailbox Office.JS:如何使用Office 2016 OnPrem加载Word / Excel任务窗格加载项? - Office.JS: How to sideload Word/Excel Taskpane add-in with Office 2016 OnPrem?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM