Pangong
  • Getting Started
  • Change log
  • Introduction
    • Installation
    • NPM
    • SASS
    • Grunt
    • API Reference
    • Browser Support
    • Jquery 3.3.1
    • Bootstrap 4.1.3
  • Menu Styles
    • Vertical Menu Style
    • Horizontal Menu Style
    • Horizontal Menu with Top nav
  • Application
    • Chat
    • Calendar
    • Email
  • Social Feed
    • Twitter Feed
  • components
    • Gallery
    • Activity
    • Embeds
    • Colors
  • forms
    • Toggles
    • Range slider
    • Select2
    • Input Spinner
    • Date Picker
    • Color Picker
    • Editor
  • Tables
    • Data Table
    • Responsive Table (tablesaw)
    • Editable Table
  • Charts
    • Morris Chart
    • E-Charts
    • Sparkline Chart
    • Peity Charts
    • Easy Pie Chart
  • Maps
    • Vector Map
    • Google Map
  • ...
    • Credits
Powered by GitBook
On this page
  • Introduction
  • How to Setup
  • HTML Structure
  • Dependency
  • JS
  • Initialize Range slider js

Was this helpful?

  1. forms

Range slider

PreviousTogglesNextSelect2

Last updated 6 years ago

Was this helpful?

Introduction

We used a third party plugin, its comfortable, responsive and easily customizable range slider with plenty options.

How to Setup

HTML Structure

<input class="range-slider" />

Dependency

JS

<!-- Ion JavaScript -->
<script src="vendors/ion-rangeslider/js/ion.rangeSlider.min.js"></script>
<script src="dist/js/rangeslider-data.js"></script>

Initialize Range slider js

$(".range-slider").ionRangeSlider({
	type: "single",
	min: 0,
	max: 100,
	from: 50,
	keyboard: true,
	onStart: function (data) {
		console.log("onStart");
	},
	onChange: function (data) {
		console.log("onChange");
	},
	onFinish: function (data) {
		console.log("onFinish");
	},
	onUpdate: function (data) {
		console.log("onUpdate");
	}
});
Ion.RangeSlider