Customer Banners (Ads) - SpiceUp. AX and SpotfireX Disclaimer



If you find this site useful and you want to support, buy me a coffee   to keep this site alive and without ads.

Range Slider

Convert a regular Spotfire Input field Property Control as a Range Slider in Spotfire text area



html

<div id='slider'>

   <SpotfireControl id="Input Field Property Control" />   <SpotfireControl id="label Property Control" />

</div>

js

(()=>{

  const slider=document.querySelector('#slider input');
  slider.type="range";

  slider.min = 10;
  slider.max = 50;
  slider.step = 0.5;

  slider.oninput  = () => {
    slider.blur();
    slider.focus();
  }

})()

No comments: