Skip to content

ListComponent.onChange method

ListComponent › onChange

Sets the callback to be called when the user adds, moves or removes an item.

Signature:

onChange(callback: (newValue: readonly string[]) => void): this

Parameters:

ParameterTypeDescription
callback(newValue: readonly string[]) => voidThe callback.

Returns: this — The component.