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:
Post a Comment