/**
* 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.Time', {
extend: 'Rsd.form.Input',
xtype: 'time',
// height: 30,
// widht: 80,
text: '',
inputType: 'time',
ctrlCls: 'x-control-time',
handler: null,
precision:0,
min:null,
max:null,
step:1,
/**
*
*/
constructor: function Time(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);
}
}
});