Search code examples
office-jsoutlook-addinoutlook-web-app

how can i close owa pane?


I have one button. When I click on the button I want owa pane to close

window.close (); I tried but owa pane didn't close after Office.context.mailbox.ClosePane(); I tried but owa pane didn't close

how can I do it?


Solution

  • If you are looking to hide taskpane in OWA, you can try out Office.context.ui.closeContainer to do that.