Microsoft.Common.Section UI 元素Microsoft.Common.Section UI element

一个将一个或多个元素分组到同一标题下的控件。A control that groups one or more elements under a heading.

UI 示例UI sample

Microsoft.Common.Section

架构Schema

{
  "name": "section1",
  "type": "Microsoft.Common.Section",
  "label": "Example section",
  "elements": [
    {
      "name": "text1",
      "type": "Microsoft.Common.TextBox",
      "label": "Example text box 1"
    },
    {
      "name": "text2",
      "type": "Microsoft.Common.TextBox",
      "label": "Example text box 2"
    }
  ],
  "visible": true
}

备注Remarks

  • elements 必须至少具有一个元素,并且可以具有除 Microsoft.Common.Section 之外的所有元素类型。elements must have at least one element, and can have all element types except Microsoft.Common.Section.
  • 此元素不支持 toolTip 属性。This element doesn't support the toolTip property.

示例输出Sample output

若要访问 elements 中的元素的输出值,请使用 basics()steps() 函数和点表示法:To access the output values of elements in elements, use the basics() or steps() functions and dot notation:

steps('configuration').section1.text1

Microsoft.Common.Section 类型的元素本身没有输出值。Elements of type Microsoft.Common.Section have no output values themselves.

后续步骤Next steps