Class FocusEventDispatchExtensions
- Namespace
- Bunit
- Assembly
- Bunit.Web.dll
Focus event dispatch helper extension methods.
public static class FocusEventDispatchExtensions
- Inheritance
-
FocusEventDispatchExtensions
- Inherited Members
Methods
Blur(IElement, FocusEventArgs)
Raises the @onblur
event on element
, passing the provided
event arguments to the event handler.
public static void Blur(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
Blur(IElement, string?)
Raises the @onblur
event on element
, passing the provided
properties to the event handler via a FocusEventArgs object.
public static void Blur(this IElement element, string? type = null)
Parameters
element
IElementThe element to raise the event on.
type
stringThe type of the event.
BlurAsync(IElement, FocusEventArgs)
Raises the @onblur
event on element
, passing the provided
event arguments to the event handler.
public static Task BlurAsync(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
Returns
- Task
A task that completes when the event handler is done.
Focus(IElement, FocusEventArgs)
Raises the @onfocus
event on element
, passing the provided
event arguments to the event handler.
public static void Focus(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
Focus(IElement, string?)
Raises the @onfocus
event on element
, passing the provided
properties to the event handler via a FocusEventArgs object.
public static void Focus(this IElement element, string? type = null)
Parameters
element
IElementThe element to raise the event on.
type
stringThe type of the event.
FocusAsync(IElement, FocusEventArgs)
Raises the @onfocus
event on element
, passing the provided
event arguments to the event handler.
public static Task FocusAsync(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
Returns
- Task
A task that completes when the event handler is done.
FocusIn(IElement, FocusEventArgs)
Raises the @onfocusin
event on element
, passing the provided
event arguments to the event handler.
public static void FocusIn(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
FocusIn(IElement, string?)
Raises the @onfocusin
event on element
, passing the provided
properties to the event handler via a FocusEventArgs object.
public static void FocusIn(this IElement element, string? type = null)
Parameters
element
IElementThe element to raise the event on.
type
stringThe type of the event.
FocusInAsync(IElement, FocusEventArgs)
Raises the @onfocusin
event on element
, passing the provided
event arguments to the event handler.
public static Task FocusInAsync(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
Returns
- Task
A task that completes when the event handler is done.
FocusOut(IElement, FocusEventArgs)
Raises the @onfocusout
event on element
, passing the provided
event arguments to the event handler.
public static void FocusOut(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
FocusOut(IElement, string?)
Raises the @onfocusout
event on element
, passing the provided
properties to the event handler via a FocusEventArgs object.
public static void FocusOut(this IElement element, string? type = null)
Parameters
element
IElementThe element to raise the event on.
type
stringThe type of the event.
FocusOutAsync(IElement, FocusEventArgs)
Raises the @onfocusout
event on element
, passing the provided
event arguments to the event handler.
public static Task FocusOutAsync(this IElement element, FocusEventArgs eventArgs)
Parameters
element
IElementThe element to raise the event on.
eventArgs
FocusEventArgsThe event arguments to pass the event handler.
Returns
- Task
A task that completes when the event handler is done.