PDA

View Full Version : Problem with hide a component



18 Mar 2011, 6:16 AM
I'm trying to hide a textField, but the fieldLabel remains visible, any suggestion?

fay
18 Mar 2011, 7:20 AM
What version of Ext JS are you using, because a textfield's hide() method should take care of the label as well... I just tried this in the Ext JS 3.3.1 \examples\form\dynamic.js example and it works fine:



// Add id: 'email' to the 'email' field
Ext.getCmp('email').hide();


If that doesn't hide the field label for you, you can try this as well:



Ext.getCmp('email').label.hide();

18 Mar 2011, 7:42 AM
I'm using version 3.0.0, and still not working, I'll try with version 3.3.1
thanks a lot