onClose

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

Callback fired when the component requests to be closed. When provided and no action prop is set, a close icon button is displayed that triggers the callback when clicked.

Parameters

{React.SyntheticEvent} event The event source of the callback.