Table of Contents

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
MudRangeInput<T>
Implements
Inherited Members
Extension Methods

Constructors

MudRangeInput()

public MudRangeInput()

Properties

AdornmentClassname

protected string AdornmentClassname { get; }

Property Value

string

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

RenderFragment

Classname

protected string Classname { get; }

Property Value

string

Clearable

Show clear button.

[Parameter]
public bool Clearable { get; set; }

Property Value

bool

InputClassname

protected string InputClassname { get; }

Property Value

string

InputType

Type of the input element. It should be a valid HTML5 input type.

[Parameter]
public InputType InputType { get; set; }

Property Value

InputType

InputTypeString

protected string InputTypeString { get; }

Property Value

string

OnClearButtonClick

Button click event for clear button. Called after text and value has been cleared.

[Parameter]
public EventCallback<MouseEventArgs> OnClearButtonClick { get; set; }

Property Value

EventCallback<MouseEventArgs>

PlaceholderEnd

The short hint displayed in the end input before the user enters a value.

[Parameter]
public string PlaceholderEnd { get; set; }

Property Value

string

PlaceholderStart

The short hint displayed in the start input before the user enters a value.

[Parameter]
public string PlaceholderStart { get; set; }

Property Value

string

SeparatorIcon

Custom separator icon, leave null for default.

[Parameter]
public string SeparatorIcon { get; set; }

Property Value

string

TextEnd

public string TextEnd { get; set; }

Property Value

string

TextStart

public string TextStart { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

ClearButtonClickHandlerAsync(MouseEventArgs)

protected virtual Task ClearButtonClickHandlerAsync(MouseEventArgs e)

Parameters

e MouseEventArgs

Returns

Task

FocusEndAsync()

Focuses the end input of MudRangeInput

public ValueTask FocusEndAsync()

Returns

ValueTask

FocusStartAsync()

Focuses the start input of MudRangeInput

public ValueTask FocusStartAsync()

Returns

ValueTask

IsClearable()

protected bool IsClearable()

Returns

bool

SelectEndAsync()

Selects the end text of MudRangeInput

public ValueTask SelectEndAsync()

Returns

ValueTask

SelectRangeEndAsync(int, int)

Selects the specified range of the end text

public ValueTask SelectRangeEndAsync(int pos1, int pos2)

Parameters

pos1 int

Start position of the selection

pos2 int

End position of the selection

Returns

ValueTask

SelectRangeStartAsync(int, int)

Selects the specified range of the start text

public ValueTask SelectRangeStartAsync(int pos1, int pos2)

Parameters

pos1 int

Start position of the selection

pos2 int

End position of the selection

Returns

ValueTask

SelectStartAsync()

Selects the start text of MudRangeInput

public ValueTask SelectStartAsync()

Returns

ValueTask

UpdateTextPropertyAsync(bool)

protected override Task UpdateTextPropertyAsync(bool updateValue)

Parameters

updateValue bool

Returns

Task

UpdateValuePropertyAsync(bool)

protected override Task UpdateValuePropertyAsync(bool updateText)

Parameters

updateText bool

Returns

Task