Slider Types

26 Oct 20172 minutes 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 JavaScript

Property Allowed values Description
sliderType ej.SliderType.Default (default value) It is the default Slider type. It helps to select a single value.
ej.SliderType.MinRange Use this Slider to select a single value; Displays shadow from the start value to the current value.
ej.SliderType.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.

In an HTML page, specify the <div> elements to render the RangeSlider and MinRange Slider.

  • HTML
  • <div class="txt">Range</div>
      <div id="rangeSlider"></div>
      <br />
      <br />
      <div class="txt">Min-Range</div>
      <div id="minSlider"></div>
  • // When initializing the Slider components, configure the sliderType property as follows.
    /// <reference path="tsfiles/jquery.d.ts" />
    /// <reference path="tsfiles/ej.web.all.d.ts" />
    module SliderComponent {
        $(function () {
            var slider = new ej.Slider($("#minSlider"), {
            sliderType: ej.SliderType.MinRange,
            value: 60,
       var slider1 = new ej.Slider($("#rangeSlider"), {
            sliderType: ej.SliderType.Range,
            values: [30, 60],

    Execute the above code example to render the following output.