Table of Contents

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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The 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 IElement

The element to raise the event on.

type string

The 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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The 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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The 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 IElement

The element to raise the event on.

type string

The 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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The 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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The 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 IElement

The element to raise the event on.

type string

The 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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The 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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The 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 IElement

The element to raise the event on.

type string

The 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 IElement

The element to raise the event on.

eventArgs FocusEventArgs

The event arguments to pass the event handler.

Returns

Task

A task that completes when the event handler is done.

Progress Telerik

Premium sponsor: Progress Telerik.

Packt

Editorial support provided by Packt.

.NET Foundation

Supported by the .NET Foundation.