2021-10-01 18:01:20 +03:00
|
|
|
#import <DOM/Event.idl>
|
2021-09-29 20:32:29 +03:00
|
|
|
|
2023-10-25 17:27:19 +02:00
|
|
|
// https://dom.spec.whatwg.org/#interface-customevent
|
2024-10-14 11:55:51 +02:00
|
|
|
[Exposed=*]
|
2021-09-27 16:10:56 +01:00
|
|
|
interface CustomEvent : Event {
|
2021-09-29 20:32:29 +03:00
|
|
|
constructor(DOMString type, optional CustomEventInit eventInitDict = {});
|
2021-09-27 16:10:56 +01:00
|
|
|
|
|
|
|
readonly attribute any detail;
|
|
|
|
|
2024-10-14 11:55:51 +02:00
|
|
|
undefined initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // legacy
|
2021-09-27 16:10:56 +01:00
|
|
|
};
|
2021-09-29 20:32:29 +03:00
|
|
|
|
|
|
|
dictionary CustomEventInit : EventInit {
|
|
|
|
any detail = null;
|
|
|
|
};
|