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

Microsoft.Common.InfoBox

架构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,请使用“无”、“信息”、“警告”或“错误” 。For icon, use None, Info, Warning, or Error.
  • uri 属性为可选。The uri property is optional.

后续步骤Next steps