Let the button open a new window

前端 未结 1 501
一整个雨季
一整个雨季 2021-01-27 11:29

I want to add a button under the tab of my add-in, and clicking on the button should open a URL in a new window or Dialog box. I tried the follows:



        
相关标签:
1条回答
  • 2021-01-27 12:03

    after googling about office dev , I found that you can change the action tag to something like

    <!-- This is what happens when the command is triggered (E.g. click on the Button). Supported actions are ExecuteFunction or ShowTaskpane. -->
                  <Action xsi:type="ExecuteFunction">
                    <FunctionName>doSomethingAndShowDialog</FunctionName>
                  </Action>
    

    check the following link it might be helpful

    https://github.com/OfficeDev/Office-Add-in-Dialog-API-Simple-Example

    0 讨论(0)
提交回复
热议问题