OfficeDev / generator-office

Yeoman generator for building Microsoft Office related projects.
https://www.npmjs.com/package/generator-office
MIT License
818 stars 207 forks source link

Creating custom HTML page in taskpane project #771

Closed 2jjk closed 1 year ago

2jjk commented 1 year ago

Hi. I generated a JavaScript taskpane project, and wanted to create more pages to display. The taskpane folder in src displays the pane on the right, but I want to add other functionalities.

I want to press a button on the pane that opens a new popup window (or dialog box) with a custom HTML page, but I can't seem to find the right way to do this. Is there a command that does this automatically - so create a new folder with the necessary components and update the manifest file? Tried a few things but nothing worked.

The custom HTML page should interact with the default taskpane files (.html, .js, etc.) since when I press the button, an API is called and the results are displayed in the custom page.

Apologies if this isn't an issue, but I wasn't sure where to ask this. Any help would be appreciated.

millerds commented 1 year ago

Sounds like you want the office add-in dialog api. Information about it can be found at: https://learn.microsoft.com/en-us/office/dev/add-ins/develop/dialog-api-in-office-add-ins

A good place to ask general development questions, get answers, and look for previous answers is Stack Overflow: https://stackoverflow.com/questions/tagged/office-js