in ExtJs 4.0.2 for requred field indication, i’m using this code:
Ext.override(Ext.layout.Layout, {
renderItem: function(item, target, position) {
if (item && item.isFieldLabelable && !item.rendered && item.fieldLabel && item.allowBlank == false) {
item.fieldLabel += ' <span class="req" style="color:red">*</span>';
}
this.callOverridden(arguments);
}
});
But in ExtJs 4.1 this code, don’t work. What is changed? Thank you!
Checkout new label markup changes in 4.1.x http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Text-cfg-afterLabelTextTpl You don’t need your override anymore.