CompositionEvent
Represents the event arguments for a composed event.
using AngleSharp.Attributes;
using AngleSharp.Extensions;
using System.Collections.Generic;
namespace AngleSharp.Dom.Events
{
[DomName("CompositionEvent")]
public class CompositionEvent : UiEvent
{
[DomName("data")]
public string Data { get; set; }
public CompositionEvent()
{
}
public CompositionEvent(string type, bool bubbles, bool cancelable, IWindow view, string data)
{
Init(type, bubbles, cancelable, view, data);
}
[DomConstructor]
public CompositionEvent(string type, IDictionary<string, object> eventInitDict = null)
: base(type, eventInitDict)
{
Data = (eventInitDict.TryGet("data") ?? string.Empty).ToString();
}
[DomName("initCompositionEvent")]
public void Init(string type, bool bubbles, bool cancelable, IWindow view, string data)
{
Init(type, bubbles, cancelable, view, 0);
Data = data;
}
}
}