-
11 Dec 2011 10:05 PM #1
PR3: How can I access/set the class of the sliderfield's thumb?
PR3: How can I access/set the class of the sliderfield's thumb?
I need to change the thumb image depending on the value.
In PR2 I was able to do the following:
Is there a way to access the sliderfield thumb? getThumb is no longer available in PR3Code:change:function(t,value,opts){ if (opts == -1){ t.getThumb().setCls("slider-against"); }else if (opts== 0){ t.getThumb().setCls("slider-neutral"); }else if (opts == 1){ t.getThumb().setCls("slider-for"); } }
-
11 Dec 2011 11:51 PM #2
The 'slider' part of the field is now it's own component; Ext.slider.Slider. You will need to access that, then you can access the thumb.
Code:field.getComponent().getThumb(...);
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.


Reply With Quote