Just uploaded a new version of the Slider Component. I’ve been having a lot of fun with this and learning a lot about the v2 component architecture. New features are adjustable handle size, tab-focus management, keyboard control using up/down, pageUp/Down, shift-up/Down for varying degrees of accuracy. Also added an integral value label whose position can be set to top or bottom and any level of precision.
The next problem I’m trying to solve is to give the component keyboard focus when it is clicked on with the mouse. If you tab to it, you can control it with the keyboard, but not if you click on it. I tried using the UIComponent methods, “pressFocus” and “releaseFocus” to no avail. Anybody who knows anything about that, feel free to speak up.
After that, we’ll see what we can do with styles.
Resources
Search
Archives
Categories
Meta
Nice job, this is helpful
Sweet component.
Any chance of a setting to make it horizontal.
Value label positions would have to change accordingly, naturally.
Great Component.
I tried to do it by my self, but was not so successfully like you!
Thank you for your work.
I do want to make a horizontal option.
Could be tricky though. I foresee that it would contain a ton of “if” statements, or a ton of near duplicate code.
Again, Chafic Kazoun has helped me tremendously on this thing. If anyone else wants to lend some input, go ahead. I’m largely doing this as a learning experience. Since there is no complete documentation on how to build v2 components, I’m just learning by doing.
Hello Bit,
You are right, it’s tricky to update and maintain nice coding if you would implement the horizontal feature. Maybe it’s best to create two different components for this use. This way the component stays lightweight and far more easy to maintain !
Nice job !
Nice job indeed! I like your component very much!
I’m working on a site where people can design a t-shirt and order it (http://www.t-signers.com), and your component saved me lots of work. It works very nice and it looks great. Thanks!
Great component. Quick comment though.. Currently keyboard control is activated by a tabFocus event (I am guessing from the behaviour). It is much better to use pressFocus, as you can see in the numeric stepper for example.
For a horizontal version, have a look at how the scrollbars work in Flash. HScrollBar is as subclass of ScrollBar (which is vertical). It flips it in init() and then overrides a couple of properties to switch axes. The end result is that it performs slightly slower than the vertical version, but all the code is re-used and the VScrollbar is unaffected.
Consolidation of debt is the best way to get ahead. remember to do debt consolidation at least once a year.
buy levitra from us please.
Yes its true that phentermine gets you all jazzed up.