如何使用office API在Outlook Web加载项中显示菜单控件项目的纯文本菜单?

问题描述 投票:0回答:1

我正在使用javascript / html / css开发Outlook Web Add-In。

我在Home Ribbon上创建了一个包含3个项目的Menu控件。我需要为它显示仅文本菜单。但是当我评论下面的代码时

<Item id="settings">
    <Label resid="settingsLabel"/>
    <Supertip>
        <Title resid="settingsLabel" />
        <Description resid="settingsToolTip" />
    </Supertip>
    <Icon>
        <bt:Image size="16" resid="trans" />
        <bt:Image size="32" resid="trans" />
        <bt:Image size="80" resid="trans" />
    </Icon>
    <Action xsi:type="ExecuteFunction">
       <FunctionName>openSettingsDialog</FunctionName>
    </Action>
</Item>

它显示默认图标(见图片)而且,当我使用透明图标时。它看起来像

xml outlook office365 office-js outlook-web-addins
1个回答
0
投票

根据Item元素的清单模式,菜单Item的图像是必需的,必须在Icon元素中指定。需要三种图像尺寸(16,32和80像素),同时支持五种其他尺寸(20,24,40,48和64像素)。

© www.soinside.com 2019 - 2024. All rights reserved.