-
23 Mar 2012 12:56 PM #1
DatePicker minValue
DatePicker minValue
Is it possible to set the minimum date (and maximum) on the Date Picker? I think this was possible with the ext datefield but don't see it here, http://docs.sencha.com/touch/2-0/#!/...eld.DatePicker. Right now the dates go all the way back to 1980 and I can't select anything past 2012.
-
24 Mar 2012 6:54 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,641
- Vote Rating
- 434
You can specify the yearFrom config in the picker config:
Code:{ xtype : 'datepickerfield', label : 'date', picker : { yearFrom : 2000 } }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.
-
6 May 2012 10:32 AM #3


Reply With Quote