New to Telerik UI for BlazorStart a free 30-day trial

Definition

Namespace:Telerik.Blazor.Components.Common

Assembly:Telerik.Blazor.dll

Type Parameters:

TValue

Syntax:

C#
public abstract class TelerikSliderBase<TValue> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentTelerikSliderBase<TValue>

Derived Classes: TelerikRangeSlider<TValue>TelerikSlider<TValue>

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeVoidAsyncWithoutAwait(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnParametersSet()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)...

Constructors

C#
protected TelerikSliderBase()

Methods

C#
public override void Dispose()

Overrides: BaseComponent.Dispose()

Implements: IDisposable.Dispose()

C#
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters:firstRenderboolReturns:

Task

Overrides: BaseComponent.OnAfterRenderAsync(bool)

C#
protected override void OnInitialized()

Overrides: ComponentBase.OnInitialized()

C#
protected override Task OnParametersSetAsync()
Returns:

Task

Overrides: ComponentBase.OnParametersSetAsync()

Properties

[Accessibility] Defines the aria-describedby attribute for the component.

C#
[Parameter]
public string AriaDescribedBy { get; set; }

[Accessibility] Describe the aria-labelledby attribute for the component.

C#
[Parameter]
public string AriaLabelledBy { get; set; }
C#
[CascadingParameter]
public EditContext CascadedEditContext { get; set; }

Specifies the number precision applied when typing. By default the decimals count is set from the specified Culture.

C#
[Parameter]
public int Decimals { get; set; }

Specifies whether the Component is enabled.

C#
[Parameter]
public bool Enabled { get; set; }

Defines the label template of the slider.

C#
[Parameter]
public RenderFragment<TValue> LabelTemplate { get; set; }

LargeStep

TValue

Defines the step that will have a large tick and will have a label.

C#
[Parameter]
public TValue LargeStep { get; set; }

Max

TValue

Defines the maximum value of the Slider.

C#
[Parameter]
public TValue Max { get; set; }

Min

TValue

Defines the minimum value of the Slider.

C#
[Parameter]
public TValue Min { get; set; }

Defines the orientation of the Slider. Default value Horizontal.

C#
[Parameter]
public SliderOrientation Orientation { get; set; }

SmallStep

TValue

Defines the small step value of the Slider. Small ticks count is calculated based on the small step. Accepts positive values only. Default value is 1.

C#
[Parameter]
public TValue SmallStep { get; set; }

[Accessibility] The TabIndex of the component.

C#
[Parameter]
public int TabIndex { get; set; }

Defines the position of the ticks around the Slider track.

C#
[Parameter]
public SliderTickPosition TickPosition { get; set; }

Defines the width of the component.

C#
[Parameter]
public string Width { get; set; }