Inputs » slider » reset

Hi Jerry (@jashkenas),

At times, I want to reset a slider to its initial value (just like Shift-Enter in its cell does).

What’s the best way to add a reset button next to it?

Please advise.

Hi Martien,

Thanks for reaching out.

I extended Jeremy’s slider functionality to include a reset button, which you can find here

There are two parts to the extension:

  1. Merging the “Reset” button and the original slider together into a single element which exposes a value property. See Introduction to Views and Form Input for more details
  2. Ensuring that all parts of the original slider are updated when necessary

Hope that helps.

1 Like

Hi Jimmy,

Thanks! Quick response too! Exactly what I needed.