ExtJS Hiding form field labels along with the field

Seems obvious, doesn’t it? You want to hide a field on your ExtJS FormPanel and you do, but the label is still there. There are a few threads on the ExtJS forum about this, ranging from overrides to simple code solutions. The idea behind the code is this: hide the field and the div that contains the label by walking up the dom

field.hide() //or setVisible(false), whatever you are looking for

And some links to the forums to get started finding some overrides…
How to display a hidden label
Hiding the combobox and the label sometime


One comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s