Slider Types

20 Apr 20171 minute to read

This feature allows you to specify the type of Slider. There are three different types of Slider, Default Slider, Min-Range Slider and Range Slider. By default, Default Slider renders. You can use the SliderType property to choose the type of Slider. Data type of this property is “Enum”

Both Default Slider and Min-Range Slider have same behavior that is used to select a single value. In Min-Range Slider, a shadow is considered from the start value to current handle position. But Range Slider contains two handles that is used to select a range of values and a shadow is considered in between the two handles.

Possible Slider types are as follows,

Property Table for ASP.NET Core

Property Allowed values Description
SliderType Default (default value) It is the default Slider type. It helps to select a single value.
MinRange Use this Slider to select a single value; Displays shadow from the start value to the current value.
Range Use this Slider to select a range of values; Displays shadow in-between the selection range.

The following steps explains you on how to configure the SliderType property to display Range Slider and MinRange Slider.

  1. In an view page, specify the Tag helper elements to render the RangeSlider and MinRangeSlider.
  • CSHTML
  • @*Add this code in your view page*@
    
        <ej-slider id="minSlider" slider-type="MinRange" value="60" width="500px" />
    
        <ej-slider id="rangeSlider" slider-type="Range" values="30,60" width="500px" />

    Execute the above code example to render the following output.

    Shows different Slider types (Range and Min-Range sliders)