Tom Gregory wrote:
> I didn't peek at the code (much), but the demo was very nice.  I  
> preferred it to a handful of others that I've tried. I can think of a  
> couple of situations where it might come in handy.
>   
Yah.  In my current app, the goal is to allow certain forms to be filled 
out without using a keyboard so a spinner works well in many situations.
> I can think of only a few things I would change:
> - Allow interval to be a function (accepts attributes currentValue  
> and op =up|down|reset) to allow for odd patterns (powers of two,  
> Fibonacci, exponential growth, whatever).
>   
Interesting.  Right now you would have to overwrite the updateValue() 
function on the instance which only get's passed 1, 0, or -1 depending 
on the direction.
> - Does it fire onChange observers?
>   
It fires onIncrement, onDecrement, onStop, afterUpdate.  There isn't a 
true onChange because the updateValue() function doesn't check if the 
value actually changed.  I pictured the first two being used to set the 
button to a "depressed" state. I pictured onStop unsetting the 
"depressed" state or calling an onBlur-type function.  I pictured the 
afterUpdate function applying some type of additional formatting or 
processing beyond the optional prefix and suffix.  What would you do 
onChange?
> - (Personal preference), move the up/down ids into the options rather  
> than be their own parameters.  Create them if not specified.
>   
Yah, not my preference... as the demo shows, there are many ways you 
might want it to look.  dojo goes as far as to download a separate html 
template from the server--yuck.
> - Allow "power" intervals (maybe this goes along with the function  
> idea), where the interval is different if the shift or meta key is  
> held down.
>   

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to