1
votes

I am creating an Office 365 plugin for outlook using NodeJS and javascript... I use OfficeJS library to interact with Outlook. My plugin appears in the Outlook taskpane. I want to have button in my plugin HTML. When clicking on that button the taskpane must be closed. Anybody knows how ? thank you !

1

1 Answers

6
votes

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()". Preview documantation is available at Office.context.ui.closeContainer()

EDIT:

Office.context.ui.closeContainer() method is available at Mailbox 1.5 level API. The supported host is limited to Outlook.

Currently there is no support for any other hosts to open and close taskpain. If you have strong requirements for this feature please consider up-vote the uservoice suggestion for Office developers.