标签:listener can add extra listeners blank lse form The
Ext.define(‘Ext.ux.form‘, {
extend: ‘Ext.form.Panel‘,
listeners: {
‘beforeadd‘: function(){
if (!field.allowBlank) {
field.labelClsExtra = ‘x-required‘;
}
}
}
});
You can then style your field label in CSS with an :after
pseudo utility:
.x-required:after {
content: ‘ *‘;
color: red;
font-weight: bold;
}
标签:listener can add extra listeners blank lse form The
原文地址:https://www.cnblogs.com/wkk2020/p/14817386.html