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!
在4.1.x中签出新标签标记更改http://docs.sencha.com/ext-js/4-1/#!/api/Ext.form.field.Text-cfg-afterLabelTextTpl您不需要覆盖不再。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.