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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      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
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •