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