TextField.hide() doesn't hide the label

View previous topic View next topic Go down

TextField.hide() doesn't hide the label

Post  Admin on Sat Jan 22, 2011 8:00 am

When using .hide() on att TextField the associated label is still visible

Admin
Admin

Posts : 50
Join date : 2009-06-05

View user profile http://softro.forumotion.net

Back to top Go down

Re: TextField.hide() doesn't hide the label

Post  Admin on Sat Jan 22, 2011 8:00 am

Add these along with your other configuration objects:

Code:
,onHide: function(){this.getEl().up('.x-form-item').setDisplayed(false);}
,onShow: function(){this.getEl().up('.x-form-item').setDisplayed(true);}

.hide() and .show() will now affect the parent element.

Admin
Admin

Posts : 50
Join date : 2009-06-05

View user profile http://softro.forumotion.net

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum