Hi everyone,
I am trying to program a 2 handle Spectrum Slider without success.
Is it possible to do on a vanilla plugin?
import ‘@spectrum-web-components/slider/sp-slider.js’;
import ‘@spectrum-web-components/slider/sp-slider-handle.js’;
The import statements generates the following error and I have only one handle :
./index.js:9 Uncaught SyntaxError: Cannot use import statement outside a module
<div class="spectrum-Slider" style="position: absolute; top: 150px; left: 5px; width: 200px;">
<sp-slider variant="range" step="1" min="0" max="255">
Output Levels
<sp-slider-handle
slot="handle"
name="min"
label="Minimum"
value="5"
></sp-slider-handle>
<sp-slider-handle
slot="handle"
name="max"
label="Maximum"
value="250"
></sp-slider-handle>
</sp-slider>
</div>
Any help will be greatly appreciated