Table of Contents

Class InputEventDispatchExtensions

Namespace
Bunit
Assembly
Bunit.Web.dll

Input event dispatch helper extension methods.

public static class InputEventDispatchExtensions
Inheritance
InputEventDispatchExtensions
Inherited Members

Methods

Change(IElement, ChangeEventArgs)

Raises the @onchange event on element, passing the provided eventArgs to the event handler.

public static void Change(this IElement element, ChangeEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ChangeEventArgs

The event arguments to pass to the event handler.

ChangeAsync(IElement, ChangeEventArgs)

Raises the @onchange event on element, passing the provided eventArgs to the event handler.

public static Task ChangeAsync(this IElement element, ChangeEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ChangeEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

Change<T>(IElement, T)

Raises the @onchange event on element, passing the provided properties to the event handler via a ChangeEventArgs object.

public static void Change<T>(this IElement element, T value)

Parameters

element IElement

The element to raise the event on.

value T

The new value.

Type Parameters

T

Input(IElement)

Raises the @oninput event on element, passing an empty (Empty) to the event handler.

public static void Input(this IElement element)

Parameters

element IElement

The element to raise the event on.

Input(IElement, ChangeEventArgs)

Raises the @oninput event on element, passing the provided eventArgs to the event handler.

public static void Input(this IElement element, ChangeEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ChangeEventArgs

The event arguments to pass to the event handler.

InputAsync(IElement)

Raises the @oninput event on element, passing an empty (Empty) to the event handler.

public static Task InputAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

InputAsync(IElement, ChangeEventArgs)

Raises the @oninput event on element, passing the provided eventArgs to the event handler.

public static Task InputAsync(this IElement element, ChangeEventArgs eventArgs)

Parameters

element IElement

The element to raise the event on.

eventArgs ChangeEventArgs

The event arguments to pass to the event handler.

Returns

Task

A task that completes when the event handler is done.

Input<T>(IElement, T)

Raises the @oninput event on element, passing the provided properties to the event handler via a ChangeEventArgs object.

public static void Input<T>(this IElement element, T value)

Parameters

element IElement

The element to raise the event on.

value T

The new value.

Type Parameters

T

Invalid(IElement)

Raises the @oninvalid event on element, passing an empty (Empty) to the event handler.

public static void Invalid(this IElement element)

Parameters

element IElement

The element to raise the event on.

InvalidAsync(IElement)

Raises the @oninvalid event on element, passing an empty (Empty) to the event handler.

public static Task InvalidAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

Reset(IElement)

Raises the @onreset event on element, passing an empty (Empty) to the event handler.

public static void Reset(this IElement element)

Parameters

element IElement

The element to raise the event on.

ResetAsync(IElement)

Raises the @onreset event on element, passing an empty (Empty) to the event handler.

public static Task ResetAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

Select(IElement)

Raises the @onselect event on element, passing an empty (Empty) to the event handler.

public static void Select(this IElement element)

Parameters

element IElement

The element to raise the event on.

SelectAsync(IElement)

Raises the @onselect event on element, passing an empty (Empty) to the event handler.

public static Task SelectAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

SelectStart(IElement)

Raises the @onselectstart event on element, passing an empty (Empty) to the event handler.

public static void SelectStart(this IElement element)

Parameters

element IElement

The element to raise the event on.

SelectStartAsync(IElement)

Raises the @onselectstart event on element, passing an empty (Empty) to the event handler.

public static Task SelectStartAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

SelectionChange(IElement)

Raises the @onselectionchange event on element, passing an empty (Empty) to the event handler.

public static void SelectionChange(this IElement element)

Parameters

element IElement

The element to raise the event on.

SelectionChangeAsync(IElement)

Raises the @onselectionchange event on element, passing an empty (Empty) to the event handler.

public static Task SelectionChangeAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

Returns

Task

A task that completes when the event handler is done.

Submit(IElement)

Raises the @onsubmit event on element, passing an empty (Empty) to the event handler.

public static void Submit(this IElement element)

Parameters

element IElement

The element to raise the event on.

SubmitAsync(IElement)

Raises the @onsubmit event on element, passing an empty (Empty) to the event handler.

public static Task SubmitAsync(this IElement element)

Parameters

element IElement

The element to raise the event on.

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.