Class RadzenSlider<TValue>
RadzenSlider component.
Inherited Members
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
Syntax
public class RadzenSlider<TValue> : FormComponent<TValue>, IDisposable, IRadzenFormComponent
Type Parameters
Name | Description |
---|---|
TValue | The type of the value. |
Examples
<RadzenSlider @bind-Value=@value TValue="int" Min="0" Max="100" Change=@(args => Console.WriteLine($"Value: {args}")) />
Properties
HasValue
Gets a value indicating whether this instance has value.
Declaration
public override bool HasValue { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Overrides
Max
Determines the maximum value.
Declaration
public decimal Max { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The maximum value. |
Min
Determines the minimum value.
Declaration
public decimal Min { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal | The minimum value. |
Orientation
Specifies the orientation. Set to Orientation.Horizontal
by default.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Orientation |
Range
Gets or sets a value indicating whether this RadzenSlider<TValue> is range.
Declaration
public bool Range { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Step
Gets or sets the step.
Declaration
public string Step { get; set; }
Property Value
Type | Description |
---|---|
System.String | The step. |
Value
Gets or sets the value.
Declaration
public override TValue Value { get; set; }
Property Value
Type | Description |
---|---|
TValue | The value. |
Overrides
Methods
Dispose()
Disposes this instance.
Declaration
public override void Dispose()
Overrides
GetComponentCssClass()
Gets the component CSS class.
Declaration
protected override string GetComponentCssClass()
Returns
Type | Description |
---|---|
System.String |
Overrides
OnAfterRenderAsync(Boolean)
Called by the Blazor runtime.
Declaration
protected override async Task OnAfterRenderAsync(bool firstRender)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | firstRender |
Returns
Type | Description |
---|---|
Task |
Overrides
OnValueChange(Decimal, Boolean)
Called when value changed.
Declaration
public async System.Threading.Tasks.Task OnValueChange(decimal value, bool isMin)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | The value. |
System.Boolean | isMin | if set to |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task |
SetParametersAsync(ParameterView)
Sets the parameters asynchronous.
Declaration
public override async Task SetParametersAsync(ParameterView parameters)
Parameters
Type | Name | Description |
---|---|---|
ParameterView | parameters | The parameters. |
Returns
Type | Description |
---|---|
Task | Task. |