ToggleEventInit Class

https://html.spec.whatwg.org/multipage/interaction.html#toggleeventinit

public sealed class ToggleEventInit : EventInit
Inheritance
EventInit ToggleEventInit

Constructors

NameDescription
ToggleEventInit()

ToggleEventInit()

HtmlEvents.cs
public ToggleEventInit()

No documentation is available.

Properties

NameDescription
NewStateGets the state of the element after the toggle.
OldStateGets the state of the element before the toggle.
SourceGets the element that triggered the toggle.

Gets the state of the element after the toggle.

public string NewState { get; init; }

Gets the state of the element before the toggle.

public string OldState { get; init; }

Gets the element that triggered the toggle.

public Element? Source { get; init; }