1. #1
    Sencha User
    Join Date
    Jan 2012
    Posts
    39
    Answers
    5
    Vote Rating
    0
    sc0ttman is on a distinguished road

      0  

    Default Answered: Override picker toolbar button text

    Answered: Override picker toolbar button text


    Hello,

    I was wondering if anyone knew a way to pass in a config object for a Pickers' toolbar when using components like 'selectfield' and 'datepickerfield'

    I am using Mitchell Simoens locale Ux.locale.Manager plugin, and just noticed I need to handle both of these button titles in my app.

    I'm hoping its something as easy as redefining the toolbar like:
    PHP Code:
    xtype'selectfield',   // and also 'datepickerfield'                  
    picker:{                        
     
    toolbar:{
       
    items : [
        {
    cancel},
        {
    done}
      ]
     }

    But I want to keep both buttons' functionality intact. Any ideas?

    In fact, if there was a way to set all picker buttons globally, that would be best. Something like:
    PHP Code:
    Ext.override(Ext.picker,{    
    'doneButton': {
       
    locales : {                                 
           
    text 'buttons.done'                             
        
    }
    },    
    'cancelButton':{
      
    locales : { 
          
    text 'buttons.cancel'                            
      
    }
    }) 
    Thanks

  2. I think I may have just answered my own question. I'll leave it for anyone whos interested.

    PHP Code:
    Ext.define('Ux.locale.override.st.picker.Picker', {    
      
    override 'Ext.picker.Picker',   
      
    config:{         
        
    doneButton:{             
          
    locales : {                 
            
    text 'buttons.done'             
           
    }         
         },        
         
    cancelButton:{            
           
    locales : {                 
             
    text 'buttons.cancel'           
           
    }        
         }        
    }}); 

  3. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    39
    Answers
    5
    Vote Rating
    0
    sc0ttman is on a distinguished road

      0  

    Default


    I think I may have just answered my own question. I'll leave it for anyone whos interested.

    PHP Code:
    Ext.define('Ux.locale.override.st.picker.Picker', {    
      
    override 'Ext.picker.Picker',   
      
    config:{         
        
    doneButton:{             
          
    locales : {                 
            
    text 'buttons.done'             
           
    }         
         },        
         
    cancelButton:{            
           
    locales : {                 
             
    text 'buttons.cancel'           
           
    }        
         }        
    }}); 

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