ui.Slider.onChange

Registers a callback that's fired when the slider's state changes. If the change is due to the user dragging the slider, the event will not fire until the drag completes.

Returns an ID which can be passed to unlisten() to unregister the callback.

UsageReturns
Slider.onChange(callback)String
ArgumentTypeDetails
this: ui.sliderui.SliderThe ui.Slider instance.
callbackFunctionThe callback to fire when the slider's state changes. The callback is passed the slider's current value and the slider widget.