Hi Yury,

Very interesting. This certainly looks like a useful input, though I don't know if it makes sense as a default input for the "Number" type. Personally, I associate "spinners" with graphical applications like word processors and illustration apps, where it lets you quickly try out small variations on different settings, then preview to see whether that's an improvement or not. I don't know if I've ever seen a spinner on an input where the number is known in advance, and you just have to enter it in. (I've seen dropdowns in cases like that, like when you have to enter the number of people in an online reservations form, but that's not entirely the same thing.)

Maybe other people disagree, though. If you or othes have more opinions about this, feel free to share them. It would be a pretty big change to the look of forms, but sometimes change is good.

If it's not going to be the default input type, though, I would say it makes more sense in SFI, because that's where most of the Javascript-based inputs go.

By the way, it would be nice to actually see the spinner input in action, but it looks like editing on that wiki is restricted to administrators. Not that big a deal, though - I can imagine how it works.

Also - it's great to see the "two listboxes" input, above it on the form! It looks even cooler than I thought it would be; I didn't realize there was an autocompletion element to it too.


On Mon, Jul 2, 2012 at 9:55 AM, Yury Katkov <katkov.juriy@gmail.com> wrote:
Hi everyone!

Alexey Klimovich from WikiVote developed great form input for spinners
(spinboxes). Should we integrate this input with SF or with SFI? In my
opinion spinner should be default input for number data: not because
those little buttons are handy but because the user recognizes
immediately that she have to put the number (not string) in the box.

You can see the input in action here [1] and this library [2] have been used.

The input supports the following parameters:
* min and max values
* showonfocus - show buttons on hover

We'll probably add these parameters soon:
* step - the step of a single increment/decrement
* prefix - text before the number
* suffix - text after the number

[1] http://goo.gl/raIY9
[2] https://github.com/btburnett3/jquery.ui.spinner

Sincerely yours,
Yury Katkov

WikiWorks MediaWiki Consulting http://wikiworks.com