# Patches for Input bazaar

**URL:** https://talk.observablehq.com/t/patches-for-input-bazaar/837
**Category:** Help
**Created:** [June 3, 2018, 10:09pm UTC](https://talk.observablehq.com/t/patches-for-input-bazaar/837 "2018-06-03T22:09:00Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![andreasplesch](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/andreasplesch/32/676_2.png) [@andreasplesch](https://talk.observablehq.com/u/andreasplesch)
#### Post date: [June 3, 2018, 10:09pm UTC](https://talk.observablehq.com/t/patches-for-input-bazaar/837/1 "2018-06-03T22:09:00Z")

</div>

If anybody or @jashkenas is interested I started to patch Inputs here:

> **[InputsAP](https://observablehq.com/@andreasplesch/inputsap)**
>
> An Observable notebook by Andreas Plesch.

- one idea is to allow for a style options key, intended for custom width first. I only put it in slider but could/should in any input
- I found it irritating for slider with submit button to have to wait until after submitting to know which value was submitted. After all, the point of the submit button is to avoid continuous updates and be more deliberate about submitting. I patched using the change event which works for me. There is probably a more elegant solution.
- Similarly, it is often important to know what the min., max. limits are for a slider. I added a prefix, postfix options to show some text in the same style as the output value immediately to the left and right of the slider. I added this only for range for could be easily extended to all inputs. A useful variation for range would be to have a ‘show limits’ boolean option.

There may be other published patches to collect here ?

---

<div class="post-metadata">

### Author: ![andreasplesch](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/andreasplesch/32/676_2.png) [@andreasplesch](https://talk.observablehq.com/u/andreasplesch)
#### Post date: [June 3, 2018, 11:50pm UTC](https://talk.observablehq.com/t/patches-for-input-bazaar/837/2 "2018-06-03T23:50:45Z")

</div>

> **[Inputs with Quotes](https://observablehq.com/@skermes/inputs)**
>
> An Observable notebook by Sean Kermes.

quoted values, perhaps obsolete ?

---

<div class="post-metadata">

### Author: ![andreasplesch](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/andreasplesch/32/676_2.png) [@andreasplesch](https://talk.observablehq.com/u/andreasplesch)
#### Post date: [June 4, 2018, 12:00am UTC](https://talk.observablehq.com/t/patches-for-input-bazaar/837/3 "2018-06-04T00:00:36Z")

</div>

> **[Nonlinear Slider](https://observablehq.com/@mbostock/nonlinear-slider)**
>
> An Observable notebook by Mike Bostock.

add a transform function option, for sliders (or anything) ?

```auto
value = form.transform(value);

```

This is like getValue but exposed.

---

<div class="post-metadata">

### Author: ![jjimenez](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jjimenez/32/237_2.png) [@jjimenez](https://talk.observablehq.com/u/jjimenez)
#### Post date: [June 5, 2018, 9:47pm UTC](https://talk.observablehq.com/t/patches-for-input-bazaar/837/4 "2018-06-05T21:47:12Z")

</div>

I have found quoted values in the inputs useful and had found a patch before. I would upvote this even though I don’t remember why I needed them.

---

<div class="post-metadata">

### Author: ![jashkenas](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/jashkenas/32/1778_2.png) [@jashkenas](https://talk.observablehq.com/u/jashkenas)
#### Post date: [June 5, 2018, 9:54pm UTC](https://talk.observablehq.com/t/patches-for-input-bazaar/837/5 "2018-06-05T21:54:08Z")

</div>

I patched `@jashkenas/inputs` to make sure the values are quoted everywhere. But if I missed one, let me know, and I can fix it.

---

<div class="post-metadata">

### Author: ![andreasplesch](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/andreasplesch/32/676_2.png) [@andreasplesch](https://talk.observablehq.com/u/andreasplesch)
#### Post date: [July 9, 2018, 1:49pm UTC](https://talk.observablehq.com/t/patches-for-input-bazaar/837/6 "2018-07-09T13:49:59Z")

</div>

cautious yield, only yield range value when really finished:

> **[Inputs](https://observablehq.com/@tmcw/inputs/2)**
>
> An Observable notebook by Tom MacWright.
