onClose

abstract var onClose: (event: SyntheticEvent<*, *>, reason: CloseReason) -> Unit?(source)

Callback fired when the component requests to be closed.

Parameters

{string} reason Can be: "toggle", "blur", "mouseLeave", "escapeKeyDown".