office-addins - 如何在 Outlook Web App (OWA)、Outlook 2016 Mac 和 Windows 中的 Outlook 加载项中显示垂直 Pane

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

我正在开发一个针对 OWA、Outlook 2016 for Mac 和 Windows 的 Outlook 插件。我的要求是显示 右侧垂直加载项 在阅读和撰写邮件时。对于撰写,默认情况下会根据需要显示,但对于阅读,它是水平显示的,我想垂直显示。简而言之,我喜欢展示我的加载项 与 Evernote 插件完全相同 正在显示。

您的帮助将不胜感激。下面是 OWA 中 Evernote 的屏幕截图是我想要显示的内容,包括图标位置(以红色包围)。

提前致谢。

enter image description here

最佳答案

我使用 YEOMAN Office Generator 制作了这样的垂直插件。引用使用此链接。
GitHub link for yeoman-office-generator.
并在您的 manifest.xml 文件中进行更改如下:

    <?xml version="1.0" encoding="utf-8"?>
<OfficeApp xmlns=
  "http://schemas.microsoft.com/office/appforoffice/1.1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
  xsi:type="MailApp">

  <Id>7856b76d-42c2-4b40-87df-c4bfb706246f</Id>
  <Version>1.0</Version>
  <ProviderName>Microsoft</ProviderName>
  <DefaultLocale>en-us</DefaultLocale>
  <DisplayName DefaultValue="Alore MailTracker"/>
  <Description DefaultValue="Send and Track your emails.">
    <Override Locale="fr-fr" Value="Send and track your emails with Alore Emailtracker."/>
  </Description>
  <!-- Change the following line to specify    -->
  <!-- the web serverthat hosts the icon file. -->
  <IconUrl DefaultValue="https://localhost:3000/assets/icon-32.png"/>

  <Hosts>
    <Host Name="Mailbox" />
  </Hosts>
  <Requirements>
    <Sets DefaultMinVersion="1.1">
      <Set Name="Mailbox" />
    </Sets>
  </Requirements>

  <FormSettings>
    <Form xsi:type="ItemRead">
      <DesktopSettings>
        <!-- Change the following line to specify     -->
        <!-- the web server that hosts the HTML file. -->
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
        <RequestedHeight>216</RequestedHeight>
      </DesktopSettings>
      <TabletSettings>
        <!-- Change the following line to specify     -->
        <!-- the web server that hosts the HTML file. -->
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
        <RequestedHeight>216</RequestedHeight>
      </TabletSettings>
    </Form>
    <Form xsi:type="ItemEdit">
      <DesktopSettings>
        <!-- Change the following line to specify     -->
        <!-- the web server that hosts the HTML file. -->
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
      </DesktopSettings>
      <TabletSettings>
        <!-- Change the following line to specify     -->
        <!-- the web server that hosts the HTML file. -->
        <SourceLocation DefaultValue="https://localhost:3000/index.html" />
      </TabletSettings>
    </Form>
  </FormSettings>

  <Permissions>ReadWriteItem</Permissions>
  <Rule xsi:type="RuleCollection" Mode="Or"> 
    <Rule xsi:type="RuleCollection" Mode="And">
      <Rule xsi:type="RuleCollection" Mode="Or">
        <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Read" />
        <Rule xsi:type="ItemIs" ItemType="Message" FormType="Read" />
      </Rule>
      <Rule xsi:type="ItemHasRegularExpressionMatch" 
        PropertyName="BodyAsPlaintext" RegExName="VideoURL" 
        RegExValue="https://localhost:3000/resource.html" />
    </Rule>
    <Rule xsi:type="RuleCollection" Mode="Or">
      <Rule xsi:type="ItemIs" ItemType="Appointment" FormType="Edit" />
      <Rule xsi:type="ItemIs" ItemType="Message" FormType="Edit" /> 
    </Rule> 
  </Rule>
</OfficeApp>

关于office-addins - 如何在 Outlook Web App (OWA)、Outlook 2016 Mac 和 Windows 中的 Outlook 加载项中显示垂直 Pane ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38593204/

相关文章:

javascript - Office.js 识别文档中的 ContentControl 位置

ms-office - Office.context.ui.displayDialogAsync 权限被拒绝错误

java - 来自 MS Exchange OWA 的 HTML 正文中的响应 'Bad request'

office-js - 在 Word 客户端而不是文档中存储值

outlook - 设置 Office 加载项任务 Pane 的宽度

office-js - 如何在office.js中获取工作表的所有公式

visual-studio - Excel for Windows 7 中的开发工具控制台

sharepoint - 如何在 sharepoint 2010 中自动登录 owa web part

office-addins - Office 加载项中的 DialogApi 适用于所有主机?

javascript - 两个任务 Pane 的通信