-
25 May 2012 6:35 AM #1
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
For instance, I'd like to change doneButton config or at least access to setDoneButton()Code:usePicker: true
Thanks.
-
Best Answer Posted by mitchellsimoens
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.
-
28 May 2012 4:57 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3160
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
________________
http://www.JSONPLint.com - Source to lint your JSONP!
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 almost in print!
When posting code, please use BBCode's CODE tags.
-
25 Jul 2012 10:01 PM #3
Mitchell,
Are there any examples on how to implement the defaultTabletPickerConfig?
-
26 Jul 2012 11:43 PM #4
Here is my example:
In this case, I looked at the Ext.picker.Picker properties.PHP Code:xtype: 'selectfield',
usePicker: true,
label: 'Quantité :',
labelWidth: 70,
defaultPhonePickerConfig: {
doneButton: 'OK',
hideOnMaskTap: true,
cancelButton: 'Annuler'
//styleHtmlContent: true
}
However, if you use the tablet picker (which is a pop up overlay), you should look at the Ext.List properties


Reply With Quote