The JavaScript Range Slider is a custom range-type HTML5 input control. It allows you to select a value or range of values between a specified min and max.
Provides the option to select a range of numeric values intuitively by using two handles. A range slider usually fills the color between the handles to indicate selections.
This simple slider control in JavaScript allows users to select a specific numeric value from a range. Fill selection option is available to indicate the selected range visually.
The JavaScript slider bar control recognizes touch gestures, allowing the user to swipe left or right to change the value of the slider. Responsive, touch-friendly design provides the best user experience on all phone, tablet, and desktop form factors.
The user can format the slider values with a prefix (e.g. $10) and, postfix (e.g. 10 km) and prettify the given values (e.g. 10000 to 10,000).
The user can customize slider type as needed, including date range slider, time range slider, price range slider, rating slider, custom values, and more.
The JavaScript Range Slider control provides both horizontal and vertical orientation modes.
The JavaScript Range Slider control follows the HTML5 input type range standards, and it supports number, float, and negative values regardless of format.
Seamlessly supports HTML5 forms, Angular template-driven forms, and reactive forms.
Allows users to select the value or range between the precise interval by configuring step interval value.
The HTML5 slider bar, thumbs, ticks, and tooltips can be completely customized using CSS and callback events.
The JavaScript Range Slider control is designed to support localization and right-to-left (RTL) direction.
The Slider component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different Slider platforms from the links below,
Developers can customize all UI elements and control the behaviors for their end users using its rich set of client-side APIs.
Easily get started with the JavaScript Range Slider using a few simple lines of HTML and TS code, as demonstrated below. Also explore our JavaScript Range Slider Example that shows you how to render and configure the Range Slider in JavaScript.
<html>
<head>
<link href="https://cdn.syncfusion.com/ej2/material.css" rel="stylesheet">
</head>
<body>
<div>
<div class='wrap'>
<!--element which is going to render the Slider -->
<div id="slider"></div>
</div>
</div>
</body>
<style>
.wrap {
height: 260px;
margin: 0 auto;
padding: 30px 10px;
width: 260px;
}
</style>
</html>
import { Slider } from '@syncfusion/ej2-inputs';
// Initialization of Slider control
let slider: Slider = new Slider();
// Render initialized Slider
slider.appendTo('#slider');
Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.