PDA

View Full Version : invalidCls is not getting applied for the textbox fieldLabel



girish.arjunagi
26 Feb 2013, 10:09 PM
invalidCls is not getting applied for the textbox fieldLabel. Can anyone please let me know how to apply the invalidCls for textBox field label also?

mitchellsimoens
28 Feb 2013, 10:25 AM
What version are you using? I just tried with 4.1.1 and 4.2.0.489 with this code:


new Ext.form.Panel({
renderTo : document.body,
items : [
{
xtype : 'textfield',
fieldLabel : 'Test',
allowBlank : false
}
]
});

and when I inspect the dom the <table> has the x-form-invalid class on it as expected.