OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
657 stars 93 forks source link

Show taskpane when ribbon is selected #2545

Closed EdwinStraver closed 1 year ago

EdwinStraver commented 2 years ago

II have created an add-in with a custom ribbon. I would like my Taskpane to be opened, as soon as the user selects the ribbon. Note that I do not mean "when the user presses an item on the ribbon itself" (I know how to do that), but rather, as soon as my ribbon is selected and becomes visible.

Is this possible?

AbidRahman-MSFT commented 2 years ago

Hey @EdwinStraver,

To clarify, you are looking for a way to open the task pane when the user "selects your add-in ribbon"? Does this mean when the user clicks on a custom tab in the ribbon that has been created by your add-in?

There is unfortunately no way to achieve this behavior today. I would suggest posting the feature request at aka.ms/m365dev-suggestions.