Ext.form.field.Hidden隐藏字段
Ext.form.field.Hidden示例
代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>Ext.form.field.Hidden示例</title> <link href="ext-4.0.7-gpl/resources/css/ext-all.css" rel="stylesheet" type="text/css" /> <script src="ext-4.0.7-gpl/bootstrap.js" type="text/javascript"></script> <script type="text/javascript"> Ext.onReady(function () { var frm = new Ext.form.Panel({ title: "Ext.form.field.Hidden示例", bodyStyle: "padding:5", frame: true, height: 100, width: 280, renderTo: Ext.getBody(), defaultType: "textfield", defaults: [{ labelSeparator: ":", labelWidth: 50, width: 200, labelAlign: "left" }], items: [{ name: "UserID", xtype: "hidden" }, { name: "UserName", fieldLabel: "用户名" }, { name: "Password", fieldLabel: "密码", inputType: "password" }] }); }); </script> </head> <body> </body> </html>
效果图: