Class DetailsElementEventDispatchExtensions
- Namespace
- Bunit
- Assembly
- Bunit.Web.dll
General event dispatch helper extension methods.
public static class DetailsElementEventDispatchExtensions
- Inheritance
-
DetailsElementEventDispatchExtensions
- Inherited Members
Methods
Toggle(IElement)
Raises the @ontoggle
event on element
to the event handler.
public static void Toggle(this IElement element)
Parameters
element
IElementThe element to raise the event on.
ToggleAsync(IElement, EventArgs)
Raises the @ontoggle
event on element
, passing the provided eventArgs
to the event handler.
public static Task ToggleAsync(this IElement element, EventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
EventArgsThe event arguments to pass to the event handler.
Returns
- Task
A task that completes when the event handler is done.