kopia lustrzana https://github.com/shoelace-style/shoelace
Added sl-request-close event
rodzic
9dab91e0d1
commit
b7b73ea3a9
|
@ -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';
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
type SlRequestCloseEvent = CustomEvent<{ source: 'close-button' | 'keyboard' | 'overlay' }>;
|
||||
|
||||
declare global {
|
||||
interface GlobalEventHandlersEventMap {
|
||||
'sl-request-close': SlRequestCloseEvent;
|
||||
}
|
||||
}
|
||||
|
||||
export default SlRequestCloseEvent;
|
Ładowanie…
Reference in New Issue