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

The ui.Select instance.

callbackFunction

The callback to fire when an item is selected. The callback is passed the currently selected value and the select widget.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!