Microsoft Outlook 插件中的自定义任务窗格 header
Custom task pane header in Microsoft Outlook addin
我已经创建了 Outlook 插件(在撰写电子邮件 window 中打开),并在 manifest.xml 中指定了 displaName 和 iconUrl,如下所示:
<DisplayName DefaultValue="My Office Addin" />
<IconUrl DefaultValue="https://localhost:3000/assets/sample.png" />
这反映了下图中的图标和名称(1.OptionMenu 和 2.Sidepane)。
我对此有几个问题:
1.是否有任何选项可以在侧面板(第二张图片)中禁用或隐藏此图标和标题?
2。是否有自定义侧面板(第二张图片)的 header 的选项,例如在 header 中设置背景图片或自定义字体?
最近几天我浏览了 Microsoft 文档,但没有找到解决方案。我是 Microsoft add-in 的新手。如果您对此有任何想法,请帮助我。
这是我的 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>
答案是 "no" 和 "no"。你将无能为力。该区域不可自定义,每个客户端(应用程序)都采用自己的方式来显示清单中的信息。
例如,Outlook for Web 会显示加载项的名称和提供的图标...
同时,Windows 的 Outlook 桌面将仅显示加载项的名称...
目前 add-ins 无法使用这些功能(自定义任务窗格 header 和设置图标的可见性)。我们在 user-voice 页面上跟踪 Outlook add-in 功能请求。请在那里添加您的请求。当我们完成规划过程时,会考虑 user-voice 的功能请求。
https://officespdev.uservoice.com/forums/224641-general/category/131778-outlook-add-ins
我已经创建了 Outlook 插件(在撰写电子邮件 window 中打开),并在 manifest.xml 中指定了 displaName 和 iconUrl,如下所示:
<DisplayName DefaultValue="My Office Addin" />
<IconUrl DefaultValue="https://localhost:3000/assets/sample.png" />
这反映了下图中的图标和名称(1.OptionMenu 和 2.Sidepane)。
我对此有几个问题:
1.是否有任何选项可以在侧面板(第二张图片)中禁用或隐藏此图标和标题?
2。是否有自定义侧面板(第二张图片)的 header 的选项,例如在 header 中设置背景图片或自定义字体?
最近几天我浏览了 Microsoft 文档,但没有找到解决方案。我是 Microsoft add-in 的新手。如果您对此有任何想法,请帮助我。 这是我的 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>
答案是 "no" 和 "no"。你将无能为力。该区域不可自定义,每个客户端(应用程序)都采用自己的方式来显示清单中的信息。
例如,Outlook for Web 会显示加载项的名称和提供的图标...
同时,Windows 的 Outlook 桌面将仅显示加载项的名称...
目前 add-ins 无法使用这些功能(自定义任务窗格 header 和设置图标的可见性)。我们在 user-voice 页面上跟踪 Outlook add-in 功能请求。请在那里添加您的请求。当我们完成规划过程时,会考虑 user-voice 的功能请求。
https://officespdev.uservoice.com/forums/224641-general/category/131778-outlook-add-ins