Skip to content

ValueComponentWithChangeTracking.onChange method

ValueComponentWithChangeTracking › onChange

Sets a callback function to be called when the value of the component changes.

Signature:

onChange(callback: (newValue: T) => void): this

Parameters:

ParameterTypeDescription
callback(newValue: T) => voidA callback function that is called when the value of the component changes.

Returns: this