Microsoft.Common.InfoBox UI 元素Microsoft.Common.InfoBox UI element
可添加信息框的控件。A control that adds an information box. 该框包含重要文本或警告,可帮助用户了解他们提供的值。The box contains important text or warnings that help users understand the values they're providing. 它还可以链接到详细信息的 URI。It can also link to a URI for more information.
UI 示例UI sample
架构Schema
{
"name": "text1",
"type": "Microsoft.Common.InfoBox",
"visible": true,
"options": {
"icon": "None",
"text": "Nullam eros mi, mollis in sollicitudin non, tincidunt sed enim. Sed et felis metus, rhoncus ornare nibh. Ut at magna leo.",
"uri": "https://www.microsoft.com"
}
}
示例输出Sample output
"Nullam eros mi, mollis in sollicitudin non, tincidunt sed enim. Sed et felis metus, rhoncus ornare nibh. Ut at magna leo."
备注Remarks
- 对于
icon
,请使用“无”、“信息”、“警告”或“错误” 。Foricon
, use None, Info, Warning, or Error. uri
属性为可选。Theuri
property is optional.
后续步骤Next steps
- 有关创建 UI 定义的简介,请参阅 CreateUiDefinition 入门。For an introduction to creating UI definitions, see Getting started with CreateUiDefinition.
- 有关 UI 元素中的公用属性的说明,请参阅 CreateUiDefinition 元素。For a description of common properties in UI elements, see CreateUiDefinition elements.