Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Apr 2012
    Posts
    103
    Answers
    5
    Vote Rating
    10
      0  

    Default 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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      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 @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Dec 2011
    Posts
    21
    Vote Rating
    0
      0  

    Default

    Mitchell,

    Are there any examples on how to implement the defaultTabletPickerConfig?

  5. #4
    Sencha User
    Join Date
    Apr 2012
    Posts
    103
    Answers
    5
    Vote Rating
    10
      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

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •