Properties Methods Events Config Options Direct Link
Observable
  Component
    Component
      Container
        Container
          Panel
            Panel
              Sheet
                Picker
                  DatePicker

Class Ext.DatePicker

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

A date picker component which shows a DatePicker on the screen. This class extends from Ext.Picker and Ext.Sheet so it is a popup.

This component has no required properties.

Useful Properties

Screenshot:

Example code:

var datePicker = new Ext.DatePicker();
datePicker.show();

you may want to adjust the yearFrom and yearTo properties:

var datePicker = new Ext.DatePicker({
    yearFrom: 2000,
    yearTo  : 2015
});
datePicker.show();

Config Options

Config OptionsDefined By
 activeCls : String
CSS class to be applied to individual list items when they have been chosen.
Picker
 baseCls : String
The base CSS class to apply to this panel's element (defaults to 'x-panel').
Panel
 centered : Boolean
Center the Component. Defaults to false.
Component
 componentCls : String
The main component class
Picker
 data : Mixed
The initial set of data to apply to the tpl to update the content area of the Component.
Component
 dayText : String
The label to show for the day column. Defaults to 'Day'.
DatePicker
 disabled : Boolean
Defaults to false.
Component
 disabledCls : String
CSS class to add when the Component is disabled. Defaults to 'x-item-disabled'.
Component
 draggable : Boolean
Allows the component to be dragged via the touch event.
Component
 enter : String
The viewport side from which to anchor the sheet when made visible (top, bottom, left, right) Defaults to 'bottom'
Sheet
 floating : Boolean
Create the Component as a floating and use absolute positioning. Defaults to false.
Component
 floatingCls : Boolean
The class that is being added to this component when its floating. (defaults to x-floating)
Component
 height : Number
The height of the picker. Defaults to 220
Picker
 hidden : Boolean
Defaults to false.
Component
 monitorOrientation : Boolean
Monitor Orientation change
Component
 monthText : String
The label to show for the month column. Defaults to 'Month'.
DatePicker
 slotOrder : Array
An array of strings that specifies the order of the slots. Defaults to ['month', 'day', 'year'].
DatePicker
 stopMaskTapEvent : Boolean
True to stop the event that fires when you click outside the floating component. Defalts to true.
Component
 styleHtmlCls : String
The class that is added to the content target when you set styleHtmlContent to true. Defaults to 'x-html'
Component
 useTitles : Boolean
Generate a title header for each individual slot and use the title configuration of the slot. Defaults to false.
Picker
 width : Number
The width of this component in pixels.
Component
 yearFrom : Number
The start year for the date picker. Defaults to 1980
DatePicker
 yearText : String
The label to show for the year column. Defaults to 'Year'.
DatePicker
 yearTo : Number
The last year for the date picker. Defaults to the current year.
DatePicker

Public Properties

PropertyDefined By
 draggable : Boolean
Read-only property indicating whether or not the component can be dragged
Component
 items : Ext.util.MixedCollection
The MixedCollection containing all the child items of this container.
Container
 rendered : Boolean
Read-only property indicating whether or not the component has been rendered.
Component

Public Methods

MethodDefined By

Public Events

EventDefined By