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.DateSlider

The ui.DateSlider instance.

callbackFunction

The 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.