danzen / zimjs

ZIM JavaScript Canvas Framework - Code Creativity! Interactive Media For All.
Other
507 stars 47 forks source link

Slider and Spinner / Picker (menu?) components #1

Closed danzen closed 5 years ago

danzen commented 9 years ago

Slider would be nice to formalize - have examples with a button and using proportion equations but a component would be good. An option picker beyond the stepper would be good. So one with a certain number of options available and you scrub through them - perhaps with optional 3D effect. I made one in Flash like that - like the iOS date spinner.

danzen commented 8 years ago

Did add a Slider class to ZIM 1.5 and on...

danzen commented 7 years ago

Added more functionality to the Stepper - including secondary arrows - rather unique - for instance whole numbers and decimals. Also made types for Number and Letters along with generic data. Works with press drag now too - still could make a nice Spinner version of it one day!

danzen commented 7 years ago

Need to now fix the stepper so that arrows are optional and you can just press or press drag the text to advance. Also, if the value is an array, the keys pressed maybe should advance to a matching value. And at the moment, a single press does not advance the ticker, I thought that it did or used to... will adjust...

danzen commented 7 years ago

Oh ya... when I use vertical arrows for numbers I want to make up be a positive change but when I use vertical arrows with letters I want to make down a positive change. Sigh. I could reverse the list but the problem is the keyboard arrows. I set them to work with left and right too and in both cases right would be increasing the numbers and increasing the letters. So perhaps I should not make arrow keys work if they are not the main direction. Or I make it so we can specify which way is forward. Default is up but then can change it to down. I would do this for each direction: rightForward, upForward - with boolean values.

danzen commented 5 years ago

Slider, Dial, Stepper and List are now available