Tech Tips
Would you like to react to this message? Create an account in a few clicks or log in to continue.

TextField.hide() doesn't hide the label

Go down

 TextField.hide() doesn't hide the label Empty TextField.hide() doesn't hide the label

Post  Admin Sat Jan 22, 2011 8:00 am

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

Admin
Admin

Posts : 60
Join date : 2009-06-05

https://softro.forumotion.net

Back to top Go down

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

Post  Admin 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 : 60
Join date : 2009-06-05

https://softro.forumotion.net

Back to top Go down

Back to top


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