2012-03-21 15:03:00
Topic starter
I'm dynamically hiding a field using field.setVisible(false) but its label is still displayed. Is there an easy way to hide the label too?
Ext.layout.FormLayout
has a property called trackLabels
which, if set to true
, will show/hide labels when the corresponding field is shown/hidden. You can set this on whatever container has the form layout set using the layoutConfig
property:
{
xtype: 'container'
,layout: 'form'
,layoutConfig: { trackLabels: true }
...
}