RTL support

19 Apr 20171 minute to read

Slider includes the Right to Left alignment support. Operations in the Slider is performed from Right to Left.

Enabling RTL

Use the enableRTL property to enable the RTL support. By default this property is disabled. Data type of this property is “Boolean”.

The following steps explains you on how to enable RTL support in Slider.

In an HTML page, specify the <div> elements to render the Range Slider.

  • HTML
  • <div class="txt">Range Slider</div>
       <div id="rangeSlider"></div>
  • JAVASCRIPT
  • // In JavaScript, when initializing the Slider, specify the value for “enableRTL” property as “true” 
            $("#rangeSlider").ejSlider({
                sliderType: ej.SliderType.Range,
                values: [25,75],
                width: "500",
                enableRTL:true
            });

    Execute the above code example to render the following output.