View Full Version : Ext.form.Slider -> no vertical option?

25 Jul 2011, 1:27 PM
Is it possible to create a vertical Touch Ext.form.Slider? I've looked through the API and searched google and have not found any information that would suggest this as possible.

Anyone have any idea?


25 Jul 2011, 1:36 PM
Looking at the source code for the Slider, here is the moveThumb function:

moveThumb: function(thumb, pixel, animationDuration) {
thumb.dragObj.setOffset(new Ext.util.Offset(pixel, 0), animationDuration);
It seems the offset command only moves the slider across the x axis. So I believe there isnt a vertical slider "yet" :P

25 Jul 2011, 1:52 PM
hmmm.. totally looking to do a touch vertical slider. Do you think it would be hard to mod this function? Or use elements of the Ext.slider.SingleSlider function from the Ext.js library?

26 Jul 2011, 4:28 AM
Its worth a shot if you haven't already lol. If you play around with the debug of the sencha js and make some overrides it probably could be done. I can't promise anything though ;)