snapToTicks([snap])
Class: Slider.
Description:
Enables or disables snapping the slider's knob to the nearest tick mark.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
boolean |
If true, the knob will snap to the nearest tick; if false, it moves freely. |
Returns:
When setting a value, returns this component for chaining; otherwise returns the current value.
Type: Slider | boolean
