Extjs4에서 Form이 사용하는 로컬 hiddenfield

1069 단어
 
  
Ext.onReady(function(){
Ext.QuickTips.init();
Ext.create("Ext.form.Panel",{
title:' hiddenfield ',
renderTo:'formDemo',
bodyPadding:'5 5 5 5',
height:100,
width:270,
frame:true,
defaults:{
labelSeparator :": ",
labelWidth : 70,
width : 200,
allowBlank: false,
msgTarget : 'side',
labelAlign:'left'
},
items:[{
xtype:'textfield',
name:'name',
fieldLabel:'name',
value:'USPCAT.COM'
},{
xtype:'hiddenfield',
name:'age',
value:'1'
}],
buttons:[{
text:' ',
handler:function(){
this.up("form").getForm().submit({//this ( ),up (form)
params:{
info:'age '
}
});
}
}]
});
})

좋은 웹페이지 즐겨찾기