Clear Up
SharpKit Reference

Date Class

Namespace: Ext.picker

Base Types

System.Object

Constructors

Name Description
Date(DateConfig)
Date()

Properties

Name Description
alternateClassName
extend A date picker component which shows a Date Picker on the screen. This class extends from {@link Ext.picker.Picker} and {@link Ext.Sheet} so it is a popup. This component has no required configurations. ## Examples @example preview var datePicker = Ext.create('Ext.picker.Date'); datePicker.show(); You may want to adjust the {@link #yearFrom} and {@link #yearTo} properties: @example preview var datePicker = Ext.create('Ext.picker.Date', { yearFrom: 2000, yearTo : 2015 }); datePicker.show(); You can set the value of the {@link Ext.picker.Date} to the current date using `new Date()`: @example preview var datePicker = Ext.create('Ext.picker.Date', { value: new Date() }); datePicker.show(); And you can hide the titles from each of the slots by using the {@link #useTitles} configuration: @example preview var datePicker = Ext.create('Ext.picker.Date', { useTitles: false }); datePicker.show();
xtype A date picker component which shows a Date Picker on the screen. This class extends from {@link Ext.picker.Picker} and {@link Ext.Sheet} so it is a popup. This component has no required configurations. ## Examples @example preview var datePicker = Ext.create('Ext.picker.Date'); datePicker.show(); You may want to adjust the {@link #yearFrom} and {@link #yearTo} properties: @example preview var datePicker = Ext.create('Ext.picker.Date', { yearFrom: 2000, yearTo : 2015 }); datePicker.show(); You can set the value of the {@link Ext.picker.Date} to the current date using `new Date()`: @example preview var datePicker = Ext.create('Ext.picker.Date', { value: new Date() }); datePicker.show(); And you can hide the titles from each of the slots by using the {@link #useTitles} configuration: @example preview var datePicker = Ext.create('Ext.picker.Date', { useTitles: false }); datePicker.show();

Methods

Name Description
createSlot(object, object, object, object) Returns a slot config for a specified date. @private
createSlots() Generates all slots for all years specified by this component, and then sets them on the component @private
getDaysInMonth(object, object)
getValue()
isLeapYear(object)
setValue(object, object) @cfg {Array} slots @hide @accessor
updateDayText(object, object) Updates the dayText configuraton
updateMonthText(object, object) Updates the monthText configuration
updateYearFrom() Updates the yearFrom configuration
updateYearText(object) Updates the yearText configuration
updateYearTo() Updates the yearTo configuration
© Copyright 2005-2011 SharpKit. All rights reserved.