Source: form/Date.js

/**
 * Created with IntelliJ IDEA.
 * User: seeker910
 * Date: 13-11-8
 * Time: 上午1:38
 * To change this template use File | Settings | File Templates.
 * 
 * 仅包含 日期部分,不含时间部分
 */
 Rsd.define('Rsd.form.Date', {
    extend: 'Rsd.form.Input',
    xtype: 'date',
//    height: 30,
//    widht: 80,
    text: '',
    inputType: 'date',
    ctrlCls: 'x-control-date',
    handler: null, 
    min:null,
    max:null,
    step:1,
    /**
     * 
     */
    constructor: function Date(config) {
        config = config || {};
        this.apply(config);

    },
    /**
     * 
     */
    onAfterInit: function onAfterInit() {
        this.callParent();
        var me = this;
        me.ctrl.element.setAttribute("step",this.step);
        if(me.min != undefined && me.min != null)
        {
            me.ctrl.element.setAttribute("min",this.min);
        }
        if(me.max != undefined && me.max != null)
        {
            me.ctrl.element.setAttribute("max",this.max);
        }
    } 

});