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'           
           
    }        
         }        
    }}); 

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar