office-js - Microsoft Outlook 插件中的自定义任务 Pane 标题

标签 office-js office-addins outlook-web-addins

我已经创建了 Outlook 插件(在撰写电子邮件窗口中打开),并在 manifest.xml 中指定了 displaName 和 iconUrl,如下所示:

<DisplayName DefaultValue="My Office Addin" />
<IconUrl DefaultValue="https://localhost:3000/assets/sample.png" />

这反射(reflect)了下图中的图标和名称(1. OptionMenu 和 2. Sidepane)。

Menu option SidePane

我对此有几个疑问:

<强>1。是否有任何选项可以禁用或隐藏侧 Pane 中的此图标和标题(第二张图片)?

<强>2。是否有任何选项可以自定义侧 Pane (第二张图片)的标题,例如在标题中设置背景图像或自定义字体?

过去几天我浏览了微软文档,但没有找到解决方案。我是 Microsoft 加载项的新手。如果您对此有任何想法,请帮助我。 这是我的manifest.xml 文件:

<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:mailappor="http://schemas.microsoft.com/office/mailappversionoverrides/1.0" xsi:type="MailApp">
  <Id>1e4f9008-e850-4631-be7c-d36b05a23543</Id>
  <Version>1.0.0.0</Version>
  <ProviderName>My Office Addin</ProviderName>
  <DefaultLocale>en-US</DefaultLocale>
  <DisplayName DefaultValue="My Office Addin" />
  <Description DefaultValue="My Office Addin Description" />
  <IconUrl DefaultValue="https://localhost:3000/assets/sample.png" />
  <HighResolutionIconUrl DefaultValue="https://localhost:3000/assets/sample.png" />
  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="Mailbox" />
    </Sets>
  </Requirements>
  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:3000/taskpane.html" />
        <RequestedHeight>250</RequestedHeight>
      </DesktopSettings>
      <TabletSettings>
        <!-- Change the following line to specify     -->
        <!-- the web server that hosts the HTML file. -->
        <SourceLocation DefaultValue=
          "https://localhost:3000/taskpane.html" />
        <RequestedHeight>216</RequestedHeight>
      </TabletSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <SourceLocation DefaultValue="https://localhost:3000/taskpane.html" />
      </DesktopSettings>
      <TabletSettings>
        <SourceLocation DefaultValue="https://localhost:3000/taskpane.html" />
      </TabletSettings>
    </Form>
  </FormSettings>
  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or">
    <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" />
  </Rule>
  <DisableEntityHighlighting>false</DisableEntityHighlighting>
</OfficeApp>

最佳答案

目前,这些功能(自定义任务 Pane 标题和设置图标的可见性)不可用于加载项。我们在用户语音页面上跟踪 Outlook 加载项功能请求。请在那里添加您的请求。当我们进行规划过程时,会考虑用户语音的功能请求。

https://officespdev.uservoice.com/forums/224641-general/category/131778-outlook-add-ins

关于office-js - Microsoft Outlook 插件中的自定义任务 Pane 标题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59769606/

相关文章:

javascript - 我需要通过office.js删除word消息

javascript - 为什么工作表 ID 在重新打开文档(Excel javascript API)后发生变化?

excel - OfficeJs - 获取 excel/powerpoint 文件的字体/主题颜色

javascript - 如何插入或获取内容控件、Outlook Web 插件 JavaScript?

add-in - PowerPoint 加载项(应用程序)是否有幻灯片切换事件

office-js - 在 Outlook 和加载项 Pane 之间拖放

javascript - BindingDataChanged 在 Excel Web App 中不起作用

visual-studio - Visual Studio 2019 中缺少 Javascript 控制台窗口

outlook-addin - Outlook Web App (Exchange 2013 On-Premise) API 1.2 如何访问电子邮件正文?

javascript - 用于获取消息标题的插件