CustomEvent
Represents a custom event that provides an additional details property.
using AngleSharp.Attributes;
namespace AngleSharp.Dom.Events
{
[DomName("CustomEvent")]
public class CustomEvent : Event
{
[DomName("detail")]
public object Details { get; set; }
public CustomEvent()
{
}
[DomConstructor]
[DomInitDict(1, true)]
public CustomEvent(string type, bool bubbles = false, bool cancelable = false, object details = null)
{
Init(type, bubbles, cancelable, details);
}
[DomName("initCustomEvent")]
public void Init(string type, bool bubbles, bool cancelable, object details)
{
Init(type, bubbles, cancelable);
Details = details;
}
}
}