1. #1
    Sencha User
    Join Date
    Apr 2008
    Posts
    17
    Vote Rating
    1
    minorbug is on a distinguished road

      0  

    Default 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:

    Code:
    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");
                               }
                               
                           }
    Is there a way to access the sliderfield thumb? getThumb is no longer available in PR3

  2. #2
    Sencha - Sencha Touch Dev Team rdougan's Avatar
    Join Date
    Oct 2008
    Posts
    1,158
    Vote Rating
    6
    rdougan will become famous soon enough

      0  

    Default


    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.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi