RangeInputTValue Class

Represents a Blazor component that provides a range input for numeric values.
See Bootstrap Range Input for more information.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public sealed class RangeInput<TValue> : BlazorBootstrapComponentBase
where TValue : struct, new(), INumber<TValue>
Inheritance
Object    ComponentBase    BlazorBootstrapComponentBase    RangeInputTValue

Type Parameters

TValue
The type of the numeric value.

Remarks

Supported types for TValue are: sbyte, sbyte?, short, short?, int, int?, long, long?, float, float?, double, double?, decimal or decimal?

Constructors

RangeInputTValueInitializes a new instance of the RangeInputTValue class

Properties

Disabled Gets or sets the disabled state.
Max Gets or sets the maximum value of the range input.
Min Gets or sets the minimum value of the range input.
Step Gets or sets the step value of the range input.
TickMarks Gets or sets the tick marks.
Value Gets or sets the value of the range input.
ValueChanged This event fires when the user specifies a numeric value.
ValueExpression An expression that identifies the bound value.

Methods

BsOnInput Invoked by the JavaScript function when the input value changes.
Disable Disables the range input.
Enable Enables the range input.
SetParametersAsync Parameters are loaded manually for sake of performance; if we were to use System.Reflection magic, it would hurt performance if components were used in large numbers.
(Overrides ComponentBaseSetParametersAsync(ParameterView))

Exceptions

InvalidOperationExceptionThrown if Min is larger than Max

See Also