var movie_form=new Ext.FormPanel({
renderTo:document.body,
frame:true,
title:'Moview Information Form',
width:250,
items:[{xtype:'textfield',fieldLabel:'title',name:'title'},{xtype:'datefield',fieldLabel:'Date Released',name:'released'}]
renderTo:document.body,
frame:true,
title:'Moview Information Form',
width:250,
items:[{xtype:'textfield',fieldLabel:'title',name:'title'},{xtype:'datefield',fieldLabel:'Date Released',name:'released'}]
});
xtype类型:
其中datefield的设置
验证:
表单的简单非空验证
vtype验证及email
自定义验证:
但实际使用时有点问题。。。