CustomEvent Class
https://dom.spec.whatwg.org/#interface-customevent
public sealed class CustomEvent : Event- Inheritance
EventCustomEvent
Constructors
| Name | Description |
|---|---|
| CustomEvent(string, CustomEventInit?) | Creates a custom event with the given type and initialization dictionary. |
CustomEvent(string, CustomEventInit?)
Event.csCreates a custom event with the given type and initialization dictionary.
public CustomEvent(string type, CustomEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| Detail | Gets the custom data associated with the event. |
Detail
Event.csGets the custom data associated with the event.
public object? Detail { get; }Methods
| Name | Description |
|---|---|
| InitCustomEvent(string, bool, bool, object?) | https://dom.spec.whatwg.org/#dom-customevent-initcustomevent |