Files
AntdUI/doc/wiki/en/Control/Slider.md
2026-02-27 21:02:32 +08:00

1.6 KiB
Raw Blame History

HomeUpdateLogConfigTheme

Slider

👚

A Slider component for displaying current value and intervals in range.

  • DefaultPropertyValue
  • DefaultEventValueChanged

Properties

Name Description Type Default Value
Fill Colour Color? null
FillHover Hover color Color? null
FillActive Activate color Color? null
TrackColor Slide color Color? null
MinValue Minimum value int 0
MaxValue Maximum value int 100
Value Current value int 0
Align Align TAlignMini Left
ShowValue Whether to display numerical values bool false
LineSize line Thickness int 4
DotSize Dot size int 10
DotSizeActive Click to activate size int 12
Dots Can only be dragged onto the scale bool false
Marks Tick marks SliderMarkItemCollection SliderMarkItemCollection null
MarkTextGap Scale text spacing int 4

Events

Name Description Return Value Parameters
ValueChanged Occurred when the value of the Value property is changed void int value
ValueFormatChanged Occurred during Value formatting ShowValue = true occur string int value

Data

SliderMarkItem

Name Description Type Default Value
Value Value int 0
Fore Text color Color? null
Text Text string? null
Tag User defined data object? null