PDA

View Full Version : How to set up DatePicker options while using DateField object?



bereal
18 Apr 2007, 7:40 AM
The task is simple - I am using DateField object in forms and want to set up some of DatePicker config options - for example disabledDays or startDay.

Is it possible?

Thanks in advance.

tryanDLS
18 Apr 2007, 8:01 AM
Yes, read the DateField doc.

bereal
18 Apr 2007, 8:03 AM
Already, but couldn`t find anything

tryanDLS
18 Apr 2007, 8:26 AM
Hmm.. http://extjs.com/deploy/ext/docs/output/Ext.form.DateField.html#config-disabledDates

bereal
18 Apr 2007, 11:23 PM
And what about StartDay? :)

tryanDLS
19 Apr 2007, 1:53 PM
Read the doc! There is an entire list of config options.

bereal
19 Apr 2007, 10:32 PM
I'm reading it. But the only thing I couldn't find is StartDay. Really!

brian.moeskau
20 Apr 2007, 12:42 AM
By StartDay, do you mean minValue? StartDay in the DatePicker is used to set the first day of the week that displays in calendar months -- I'm not sure how that would be relevant in a DateField.

ApocalypseCow
9 Aug 2007, 3:15 AM
I've just had the same issue, where in the dateField config can you specify the startDay of the datePicker calendar associated with it?