ui.DateSlider.onChange

Registers a callback that's fired when the slider's value changes.

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

UsageReturns
DateSlider.onChange(callback)String
ArgumentTypeDetails
this: ui.datesliderui.DateSliderThe ui.DateSlider instance.
callbackFunctionThe callback to fire when the slider's state changes. The callback is passed an ee.DateRange representing the slider's current value and the slider widget.