Skip to main content

Range

Description

<jp-range> that has a two thumb <input type="range"> functionality.


Attributes

NameRequiredTypeDescription
value[number, number]setter
namestringname of the form control
idstringunique identifier
disabledbooleandetermines if slider is disabled
maxnumbermaximal slider value
minnumberminimal slider value
stepnumbersize of increment/decrement when sliding
discretebooleanwhether slider is smooth or in ticks
(when false step is any)
showValuebooleandetermines if values are shown
startLabelstringmessage shown before start value
endLabelstringmessage shown before end value


Slots

This component does not have any slots.



Methods

  • getValue
    • returns form field value


Events

  • value
    • triggers when slider value changes


Demo

Live Editor
// import '@jaspero/web-components/range.wc.js';
// import '@jaspero/web-components/range.css';

<jp-range></jp-range>
Result
Loading...