我开发了一个简单的 Oultook Web Addin,当单击功能区按钮时,我需要更改我的图标(调用一个 JavaScript 函数来处理我的工作,我需要将图标颜色从蓝色更改为绿色)。
我的manifest.xml 正在获取以下元素:
<Control xsi:type="Button" id="msgCompose">
<Label resid="FunctionButton.Label"/>
<Supertip>
<Title resid="FunctionButton.Title"/>
<Description resid="FunctionButton.Tooltip"/>
</Supertip>
<Icon>
<bt:Image size="16" resid="Icon.16x16_blue"/>
<bt:Image size="32" resid="Icon.32x32_blue"/>
<bt:Image size="80" resid="Icon.80x80_blue"/>
</Icon>
<Action xsi:type="ExecuteFunction">
<FunctionName>compose</FunctionName>
</Action>
</Control>
并且我声明了以下资源:
<Resources>
<bt:Images>
<bt:Image id="Icon.16x16_blue" DefaultValue="https://localhost:3000/assets/ms16-blue.png"/>
<bt:Image id="Icon.32x32_blue" DefaultValue="https://localhost:3000/assets/ms32-blue.png"/>
<bt:Image id="Icon.80x80_blue" DefaultValue="https://localhost:3000/assets/ms80-blue.png"/>
<bt:Image id="Icon.16x16_green" DefaultValue="https://localhost:3000/assets/ms16-green.png"/>
<bt:Image id="Icon.32x32_green" DefaultValue="https://localhost:3000/assets/ms32-green.png"/>
<bt:Image id="Icon.80x80_green" DefaultValue="https://localhost:3000/assets/ms80-green.png"/>
</bt:Images>
....
我需要从Javascript函数更改manifest.xml要显示的图标的resid:
<Icon>
<bt:Image size="16" resid="Icon.16x16_green"/>
<bt:Image size="32" resid="Icon.32x32_green"/>
<bt:Image size="80" resid="Icon.80x80_green"/>
</Icon>
知道如何实现这一目标吗?
目前您请求的功能不是产品的一部分。我们在技术社区页面上跟踪 Outlook 加载项功能请求。请在那里提交您的请求并选择适当的标签。当我们进行规划过程时,会考虑技术社区上的功能请求。