onClose

abstract var onClose: (event: Any, reason: String) -> Unit?(source)

Callback fired when the component requests to be closed. The reason parameter can optionally be used to control the response to onClose.

Parameters

{string} reason Can be: "escapeKeyDown", "backdropClick".