Table of Contents

Class ElementReferenceExtensions

Namespace
MudBlazor
Assembly
MudBlazor.dll
public static class ElementReferenceExtensions
Inheritance
ElementReferenceExtensions
Inherited Members

Methods

AddDefaultPreventingHandlers(ElementReference, string[])

public static ValueTask<int[]> AddDefaultPreventingHandlers(this ElementReference elementReference, string[] eventNames)

Parameters

elementReference ElementReference
eventNames string[]

Returns

ValueTask<int[]>

MudAttachBlurEventWithJS<T>(ElementReference, DotNetObjectReference<T>)

public static ValueTask MudAttachBlurEventWithJS<T>(this ElementReference elementReference, DotNetObjectReference<T> obj) where T : class

Parameters

elementReference ElementReference
obj DotNetObjectReference<T>

Returns

ValueTask

Type Parameters

T

MudBlurAsync(ElementReference)

public static ValueTask MudBlurAsync(this ElementReference elementReference)

Parameters

elementReference ElementReference

Returns

ValueTask

MudChangeCssAsync(ElementReference, string)

public static ValueTask MudChangeCssAsync(this ElementReference elementReference, string css)

Parameters

elementReference ElementReference
css string

Returns

ValueTask

MudDetachBlurEventWithJS<T>(ElementReference, DotNetObjectReference<T>)

public static ValueTask MudDetachBlurEventWithJS<T>(this ElementReference elementReference, DotNetObjectReference<T> obj) where T : class

Parameters

elementReference ElementReference
obj DotNetObjectReference<T>

Returns

ValueTask

Type Parameters

T

MudFocusFirstAsync(ElementReference, int, int)

public static ValueTask MudFocusFirstAsync(this ElementReference elementReference, int skip = 0, int min = 0)

Parameters

elementReference ElementReference
skip int
min int

Returns

ValueTask

MudFocusLastAsync(ElementReference, int, int)

public static ValueTask MudFocusLastAsync(this ElementReference elementReference, int skip = 0, int min = 0)

Parameters

elementReference ElementReference
skip int
min int

Returns

ValueTask

MudGetBoundingClientRectAsync(ElementReference)

public static ValueTask<BoundingClientRect> MudGetBoundingClientRectAsync(this ElementReference elementReference)

Parameters

elementReference ElementReference

Returns

ValueTask<BoundingClientRect>

MudRestoreFocusAsync(ElementReference)

public static ValueTask MudRestoreFocusAsync(this ElementReference elementReference)

Parameters

elementReference ElementReference

Returns

ValueTask

MudSaveFocusAsync(ElementReference)

public static ValueTask MudSaveFocusAsync(this ElementReference elementReference)

Parameters

elementReference ElementReference

Returns

ValueTask

MudSelectAsync(ElementReference)

public static ValueTask MudSelectAsync(this ElementReference elementReference)

Parameters

elementReference ElementReference

Returns

ValueTask

MudSelectRangeAsync(ElementReference, int, int)

public static ValueTask MudSelectRangeAsync(this ElementReference elementReference, int pos1, int pos2)

Parameters

elementReference ElementReference
pos1 int
pos2 int

Returns

ValueTask

RemoveDefaultPreventingHandlers(ElementReference, string[], int[])

public static ValueTask RemoveDefaultPreventingHandlers(this ElementReference elementReference, string[] eventNames, int[] listenerIds)

Parameters

elementReference ElementReference
eventNames string[]
listenerIds int[]

Returns

ValueTask