T
CloseWatcherHandler
testeddemoHandler invoked when a close request is received. The argument is the native `close` event when the platform `CloseWatcher` is used, or the `Escape` `KeyboardEvent` when falling back to keydown.
Demo
Loading demo…
Signature
ts
export type CloseWatcherHandler = (event: Event) => void;