Microsoft.Common.Slider UI element
The Slider control lets users select from a range of allowed values.
UI sample
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
andmax
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
- For an introduction to creating UI definitions, see Getting started with CreateUiDefinition.
- For a description of common properties in UI elements, see CreateUiDefinition elements.
Phản hồi
https://aka.ms/ContentUserFeedback.
Sắp ra mắt: Trong năm 2024, chúng tôi sẽ dần gỡ bỏ Sự cố với GitHub dưới dạng cơ chế phản hồi cho nội dung và thay thế bằng hệ thống phản hồi mới. Để biết thêm thông tin, hãy xem:Gửi và xem ý kiến phản hồi dành cho