ToggleEventInit Class
https://html.spec.whatwg.org/multipage/interaction.html#toggleeventinit
public sealed class ToggleEventInit : EventInit- Inheritance
EventInitToggleEventInit
Constructors
| Name | Description |
|---|---|
| ToggleEventInit() |
ToggleEventInit()
HtmlEvents.cspublic ToggleEventInit()No documentation is available.
Properties
| Name | Description |
|---|---|
| NewState | Gets the state of the element after the toggle. |
| OldState | Gets the state of the element before the toggle. |
| Source | Gets the element that triggered the toggle. |
NewState
HtmlEvents.csGets the state of the element after the toggle.
public string NewState { get; init; }OldState
HtmlEvents.csGets the state of the element before the toggle.
public string OldState { get; init; }Source
HtmlEvents.csGets the element that triggered the toggle.
public Element? Source { get; init; }