Does anyone know what the html code is to get that numeric entry text box next to the slider? I’ve tried various uses of the “is editable” property but had no luck. Thank you!
Hi,
If you are using UXP and not React, you might want to take a look at this page
In UXP, sliders are implemented in a basic way and if you want to edit the value by hand then you will have to built that yourself. It’s quite straightforward. Mind you, you cannot use jQuery with UXP so you have to stick to Vanilla Javascript.
Yep, this does require a little bit of JavaScript to glue things together, but it’s not too bad. If you’re using React, it’s even easier to manage (IMO), but I’ll assume that for now you’re just wanting non-React code.
I confirm that React makes things a bit easier – I suggested non-linear sliders a while ago but in the end it was not too difficult to stick an <sp-slider> and an <sp-textfield> together in a React component. It would be a nice topic for one of the UXP videos now that you make me think about it!