-
I'm using Svelte on a HTML page using vanilla javascript. How do I setup an 'onChange' event listener when doing this? This is my code:
I suppose I just need the JS equivalent of this:
Thanks in advance for any help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Nevermind, I figured it out!
|
Beta Was this translation helpful? Give feedback.
-
Glad you sorted it! :D |
Beta Was this translation helpful? Give feedback.
Nevermind, I figured it out!
var MySlider = new RangeSliderPips({ target: document.querySelector("#capacity-slider"), props: { values: [minSize,maxSize], min: minSize, max: maxSize, range: true, pips: false, float: true }, }).$on( 'change', (e) => { let handle = e.detail.activeHandle; let value = e.detail.value; } });