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
-
MudBaseInput<T>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
OnDebounceIntervalElapsed
Occurs when the DebounceInterval has elapsed.
[Parameter]
public EventCallback<string> OnDebounceIntervalElapsed { get; set; }
Property Value
Remarks
The value in Text is included in this event.
Methods
DisposeAsyncCore()
Called to dispose this instance.
protected override ValueTask DisposeAsyncCore()
Returns
OnChange()
protected Task OnChange()
Returns
OnParametersSet()
protected override void OnParametersSet()
UpdateTextPropertyAsync(bool)
Occurs when the value has changed internally.
protected override Task UpdateTextPropertyAsync(bool updateValue)
Parameters
updateValue
bool
Returns
Remarks
UpdateValuePropertyAsync(bool)
Occurs when the value has changed internally.
protected override Task UpdateValuePropertyAsync(bool updateText)
Parameters
updateText
bool