kor TürkçeGitHub

Slider

Picks a number or an interval by dragging.

kor/ui/SliderSource

When to use

  • Use it when the approximate value matters more than the exact one.

Examples

Value and interval

Loading the example

<k:Stack gap="18">
	<k:Slider label="Discount" value="15" max="50" unit="%"/>
	<k:Slider label="Price" range="true" value="200" to="750" max="1000" step="10" unit="TRY"/>
</k:Stack>

API

Properties

NameTypeDefaultDescription
valuefloat0Value, or the start of the interval
tofloat100End of the interval
rangebooleanfalseWhether to select an interval
minfloat0Minimum
maxfloat100Maximum
stepfloat1Step
decimalsint0Decimal places
unitstringUnit
labelstringLabel
helpstringHelp text
enabledbooleantrueWhether the control is enabled

Events

NameTypeDescription
changevalue: float
to: float
The value was committed
liveChangevalue: float
to: float
Fired while dragging

Related

NumberFieldRating