1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    103
    Vote Rating
    10
    Answers
    5
    pepperseb is on a distinguished road

      0  

    Default Answered: Configuration of Ext.picker.Picker when using usePicker

    Answered: Configuration of Ext.picker.Picker when using usePicker


    Hi,

    How can I configure the picker used in my selectfield when using
    Code:
    usePicker: true
    For instance, I'd like to change doneButton config or at least access to setDoneButton()

    Thanks.


  2. To configure the Ext.picker.Picker you should use the defaultPhonePickerConfig on the select field. To config the floating panel (like used on tablet) you can use the defaultTabletPickerConfig.

  3. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,647
    Vote Rating
    899
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    To configure the Ext.picker.Picker you should use the defaultPhonePickerConfig on the select field. To config the floating panel (like used on tablet) you can use the defaultTabletPickerConfig.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  4. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    21
    Vote Rating
    0
    KeithBurns is on a distinguished road

      0  

    Default


    Mitchell,

    Are there any examples on how to implement the defaultTabletPickerConfig?

  5. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    103
    Vote Rating
    10
    Answers
    5
    pepperseb is on a distinguished road

      0  

    Default


    Quote Originally Posted by KeithBurns View Post
    Mitchell,

    Are there any examples on how to implement the defaultTabletPickerConfig?
    Here is my example:

    PHP Code:
    xtype'selectfield',            
    usePickertrue,            
    label'Quantité :',            
    labelWidth70,            
    defaultPhonePickerConfig: {                
        
    doneButton'OK',                
        
    hideOnMaskTaptrue,                
        
    cancelButton'Annuler'                
        
    //styleHtmlContent: true            

    In this case, I looked at the Ext.picker.Picker properties.

    However, if you use the tablet picker (which is a pop up overlay), you should look at the Ext.List properties