Table of Contents

Class MudDebouncedInput<T>

Namespace
MudBlazor
Assembly
MudBlazor.dll

A base class for designing input components which update after a delay.

public abstract class MudDebouncedInput<T> : MudBaseInput<T>, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IFormComponent, IAsyncDisposable

Type Parameters

T

The type of object managed by this input.

Inheritance
MudDebouncedInput<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

MudDebouncedInput()

protected MudDebouncedInput()

Properties

DebounceInterval

The number of milliseconds to wait before updating the Text value.

[Parameter]
[Category("Behavior")]
public double DebounceInterval { get; set; }

Property Value

double

OnDebounceIntervalElapsed

Occurs when the DebounceInterval has elapsed.

[Parameter]
public EventCallback<string> OnDebounceIntervalElapsed { get; set; }

Property Value

EventCallback<string>

Remarks

The value in Text is included in this event.

Methods

DisposeAsyncCore()

Called to dispose this instance.

protected override ValueTask DisposeAsyncCore()

Returns

ValueTask

OnChange()

protected Task OnChange()

Returns

Task

OnParametersSet()

protected override void OnParametersSet()

UpdateTextPropertyAsync(bool)

Occurs when the value has changed internally.

protected override Task UpdateTextPropertyAsync(bool updateValue)

Parameters

updateValue bool

Returns

Task

Remarks

This method is called when the Text property needs to be refreshed from current Value.

UpdateValuePropertyAsync(bool)

Occurs when the value has changed internally.

protected override Task UpdateValuePropertyAsync(bool updateText)

Parameters

updateText bool

Returns

Task

Remarks

This method is called when the Value property needs to be refreshed from current Text.