onChange

abstract var onChange: (event: ChangeEvent<HTMLInputElement>, checked: Boolean) -> Unit?(source)

Callback fired when the state is changed.

Parameters

{React.ChangeEvent} event The event source of the callback. You can pull out the new value by accessing event.target.value (string). You can pull out the new checked state by accessing event.target.checked (boolean).