你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Common.Slider UI 元素

“滑块”控件允许用户从一系列允许的值中进行选择。

UI 示例

带有一系列允许的值的 Microsoft.Common.Slider UI 元素的屏幕截图。

架构

{
    "name": "memorySize",
    "type": "Microsoft.Common.Slider",
    "min": 1,
    "max": 64,
    "label": "Memory",
    "subLabel": "MB",
    "defaultValue": 24,
    "showStepMarkers": false,
    "toolTip": "Pick the size in MB",
    "constraints": {
        "required": false
    },
    "visible": true
}

示例输出

26

备注

  • minmax 值是必需的。 它们设置滑块的起点和终点。
  • showStepMarkers 属性默认值为真。 仅当最小值到最大值的范围小于等于 100 时,才会显示步长标记。

后续步骤