Clear Up
SharpKit Reference

DateConfig Class

Namespace: Ext.form.field

Constructors

Name Description
DateConfig(Object[])

Fields

Name Description
altFormats Multiple date formats separated by "|" to try when parsing a user input value and it does not match the defined format. Defaults to: "m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d|n-j|n/j"
disabledDates An array of "dates" to disable, as strings. These strings will be used to build a dynamic regular expression so they are very powerful. Some examples:
// disable these exact dates:
            disabledDates: ["03/08/2003", "09/16/2003"]
            // disable these days for every year:
            disabledDates: ["03/08", "09/16"]
            // only match the beginning (useful if you are using short years):
            disabledDates: ["^03/08"]
            // disable every day in March 2006:
            disabledDates: ["03/../2006"]
            // disable every day in every March:
            disabledDates: ["^03"]
            
Note that the format of the dates included in the array should exactly match the format config. In order to support regular expressions, if you are using a date format that has "." in it, you will have to escape the dot when restricting dates. For example: ["03\\.08\\.03"].
disabledDatesText The tooltip text to display when the date falls on a disabled date. Defaults to: "Disabled"
disabledDays An array of days to disable, 0 based. Some examples:
// disable Sunday and Saturday:
            disabledDays:  [0, 6]
            // disable weekdays:
            disabledDays: [1,2,3,4,5]
            
disabledDaysText The tooltip to display when the date falls on a disabled day. Defaults to: "Disabled"
format The default date format string which can be overriden for localization support. The format must be valid according to Ext.Date.parse. Defaults to: "m/d/Y"
maxText The error text to display when the date in the cell is after maxValue. Defaults to: "The date in this field must be equal to or before {0}"
maxValue The maximum allowed date. Can be either a Javascript date object or a string date in a valid format.
minText The error text to display when the date in the cell is before minValue. Defaults to: "The date in this field must be equal to or after {0}"
minValue The minimum allowed date. Can be either a Javascript date object or a string date in a valid format.
showToday false to hide the footer area of the Date picker containing the Today button and disable the keyboard handler for spacebar that selects the current date. Defaults to: true
startDay Day index at which the week should begin, 0-based. Defaults to 0 (Sunday).
submitFormat The date format string which will be submitted to the server. The format must be valid according to Ext.Date.parse. Defaults to format.
useStrict True to enforce strict date parsing to prevent the default Javascript "date rollover". Defaults to the useStrict parameter set on Ext.Date See Ext.Date.parse.
© Copyright 2005-2011 SharpKit. All rights reserved.