Class MudRangeInput<T>
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MudRangeInput<T> : MudBaseInput<Range<T>>, IComponent, IHandleEvent, IHandleAfterRender, IMudStateHasChanged, IFormComponent, IDisposable
Type Parameters
T
- Inheritance
-
MudBaseInput<Range<T>>MudRangeInput<T>
- Implements
- Inherited Members
- Extension Methods
Constructors
MudRangeInput()
public MudRangeInput()
Properties
AdornmentClassname
protected string AdornmentClassname { get; }
Property Value
ChildContent
ChildContent of the MudInput will only be displayed if InputType.Hidden and if its not null.
[Parameter]
public RenderFragment ChildContent { get; set; }
Property Value
Classname
protected string Classname { get; }
Property Value
Clearable
Show clear button.
[Parameter]
public bool Clearable { get; set; }
Property Value
InputClassname
protected string InputClassname { get; }
Property Value
InputType
Type of the input element. It should be a valid HTML5 input type.
[Parameter]
public InputType InputType { get; set; }
Property Value
InputTypeString
protected string InputTypeString { get; }
Property Value
OnClearButtonClick
Button click event for clear button. Called after text and value has been cleared.
[Parameter]
public EventCallback<MouseEventArgs> OnClearButtonClick { get; set; }
Property Value
PlaceholderEnd
The short hint displayed in the end input before the user enters a value.
[Parameter]
public string PlaceholderEnd { get; set; }
Property Value
PlaceholderStart
The short hint displayed in the start input before the user enters a value.
[Parameter]
public string PlaceholderStart { get; set; }
Property Value
SeparatorIcon
Custom separator icon, leave null for default.
[Parameter]
public string SeparatorIcon { get; set; }
Property Value
TextEnd
public string TextEnd { get; set; }
Property Value
TextStart
public string TextStart { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
RenderTreeBuilder
ClearButtonClickHandlerAsync(MouseEventArgs)
protected virtual Task ClearButtonClickHandlerAsync(MouseEventArgs e)
Parameters
Returns
FocusEndAsync()
Focuses the end input of MudRangeInput
public ValueTask FocusEndAsync()
Returns
FocusStartAsync()
Focuses the start input of MudRangeInput
public ValueTask FocusStartAsync()
Returns
IsClearable()
protected bool IsClearable()
Returns
SelectEndAsync()
Selects the end text of MudRangeInput
public ValueTask SelectEndAsync()
Returns
SelectRangeEndAsync(int, int)
Selects the specified range of the end text
public ValueTask SelectRangeEndAsync(int pos1, int pos2)
Parameters
Returns
SelectRangeStartAsync(int, int)
Selects the specified range of the start text
public ValueTask SelectRangeStartAsync(int pos1, int pos2)
Parameters
Returns
SelectStartAsync()
Selects the start text of MudRangeInput
public ValueTask SelectStartAsync()
Returns
UpdateTextPropertyAsync(bool)
protected override Task UpdateTextPropertyAsync(bool updateValue)
Parameters
updateValue
bool
Returns
UpdateValuePropertyAsync(bool)
protected override Task UpdateValuePropertyAsync(bool updateText)
Parameters
updateText
bool