Ext datefield
Ext.define('MyApp.view.MyPanel', {
extend: 'Ext.panel.Panel',
height: 36,
width: 583,
layout: {
align: 'stretch',
type: 'hbox'
},
title: '',
initComponent: function() {
var me = this;
Ext.applyIf(me, {
items: [
{
xtype: 'datefield',
fieldLabel: 'Label',
format:'Y-m-d'
}
]
});
me.callParent(arguments);
}
});
手动输入时,如输入2012-9-2 ,当焦点离开后,如何实现时间输入的时间变为2012-09-02