Skip to content

Latest commit

 

History

History
51 lines (38 loc) · 1.34 KB

microsoft-common-slider.md

File metadata and controls

51 lines (38 loc) · 1.34 KB
title description ms.topic ms.date
Slider UI element
Describes the Microsoft.Common.Slider UI element for Azure portal. Enables users to set a value from a range of options.
reference
06/21/2024

Microsoft.Common.Slider UI element

The Slider control lets users select from a range of allowed values.

UI sample

:::image type="content" source="./media/managed-application-elements/microsoft-common-slider.png" alt-text="Screenshot of Microsoft.Common.Slider UI element with a range of allowed values.":::

Schema

{
  "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
}

Sample output

26

Remarks

  • The min and max values are required. They set the start and end points for the slider.
  • The showStepMarkers property defaults to true. The step markers are only shown when the range from min to max is 100 or less.

Next steps