Observable
  Component
    DatePicker

Class Ext.DatePicker

Package:Ext
Defined In:DatePicker.js
Class:DatePicker
Extends:Component

A popup date picker. This class is used by the DateField class to allow browsing and selection of valid dates.

All the string values documented below may be overridden by including an Ext locale file in your page.

Config Options

Config OptionsDefined By
 allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
 cancelText : String
The text to display on the cancel button (defaults to 'Cancel')
DatePicker
 data : Mixed
The initial set of data to apply to the tpl to update the content area of the Component.
Component
 dayNames : Array
An array of textual day names which can be overriden for localization support (defaults to Date.dayNames)
DatePicker
 disabled : Boolean
Render this component disabled (default is false).
Component
 disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
 disabledDatesText : String
The tooltip text to display when the date falls on a disabled date (defaults to 'Disabled')
DatePicker
 disabledDays : Array
An array of days to disable, 0-based. For example, [0, 6] disables Sunday and Saturday (defaults to null).
DatePicker
 disabledDaysText : String
The tooltip to display when the date falls on a disabled day (defaults to 'Disabled')
DatePicker
 hidden : Boolean
Render this component hidden (default is false). If true, the hide method will be called internally.
Component
 maxDate : Date
Maximum allowable date (JavaScript date object, defaults to null)
DatePicker
 maxText : String
The error text to display if the maxDate validation fails (defaults to 'This date is after the maximum date')
DatePicker
 minDate : Date
Minimum allowable date (JavaScript date object, defaults to null)
DatePicker
 minText : String
The error text to display if the minDate validation fails (defaults to 'This date is before the minimum date')
DatePicker
 monthNames : Array
An array of textual month names which can be overriden for localization support (defaults to Date.monthNames)
DatePicker
 monthYearText : String
The header month selector tooltip (defaults to 'Choose a month (Control+Up/Down to move years)')
DatePicker
 nextText : String
The next month navigation button tooltip (defaults to 'Next Month (Control+Right)')
DatePicker
 okText : String
The text to display on the ok button (defaults to ' OK ' to give the user extra clicking room)
DatePicker
 prevText : String
The previous month navigation button tooltip (defaults to 'Previous Month (Control+Left)')
DatePicker
 scope : Object
The scope (this reference) in which the handler function will be called. Defaults to this DatePicker instance.
DatePicker
 startDay : Number
Day index at which the week should begin, 0-based (defaults to 0, which is Sunday)
DatePicker
 todayText : String
The text to display on the button that selects the current date (defaults to 'Today')
DatePicker

Public Properties

PropertyDefined By
 disabled : Boolean
True if this component is disabled. Read-only.
Component
 hidden : Boolean
True if this component is hidden. Read-only.
Component
 initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
 rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By