ui.Select.onChange

Registers a callback that's fired when an item is selected.

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

UsageReturns
Select.onChange(callback)String
ArgumentTypeDetails
this: ui.selectui.SelectThe ui.Select instance.
callbackFunctionThe callback to fire when an item is selected. The callback is passed the currently selected value and the select widget.