Ext.onReady(function () {
Ext.QuickTips.init();
var form = new Ext.form.FormPanel({
title: "表单",
height: 120,
width: 200,
frame: true,
collapsible: true,
renderTo: Ext.getBody(),
defaults: {
autoFitErrors: "false",
labelSeparator: ":",
labelWidth: 50,
width: 150,
allowBlank: false,
blankText: "必填",
msgTarget: "qtip"
},
items: [{
xtype: "textfield",
fieldLabel: "姓名"
}, {
xtype: "numberfield",
fieldLabel: "年龄"
}]
});
});
Ext.from.FormPanel
最新推荐文章于 2021-08-06 12:08:42 发布