Home > Article > Web Front-end > Hidden method of extjs form textfield_extjs
this.formpanel = new Ext.FormPanel({
items: [{
fieldLabel: 'code',
name: 'FCode',
anchor:'100%',
id: 'fid'
},{
fieldLabel: 'name',
name: 'FName',
anchor:'100%' // anchor width by percentage
},{
xtype: 'textfield',
name: 'FID',
id: 'FID',
hidden: true,
hideLabel:true
}]
});
Just configure the textfield’s hidden and hideLabel to true. When only hidden:true is set, a: label will be displayed.