Added sl-request-close event

pull/1183/head
Matt Pharoah 2023-02-08 13:30:56 -05:00
rodzic 9dab91e0d1
commit b7b73ea3a9
2 zmienionych plików z 10 dodań i 0 usunięć

Wyświetl plik

@ -6,3 +6,4 @@ export { default as SlSelectionChangeEvent } from './sl-selection-change';
export { default as SlTabHideEvent } from './sl-tab-hide';
export { default as SlTabShowEvent } from './sl-tab-show';
export { default as SlErrorEvent } from './sl-error';
export { default as SlRequestCloseEvent } from './sl-request-close';

Wyświetl plik

@ -0,0 +1,9 @@
type SlRequestCloseEvent = CustomEvent<{ source: 'close-button' | 'keyboard' | 'overlay' }>;
declare global {
interface GlobalEventHandlersEventMap {
'sl-request-close': SlRequestCloseEvent;
}
}
export default SlRequestCloseEvent;