Extjs fieldLabel Style

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;
}

Extjs fieldLabel Style

上一篇:Chrome浏览器安装SwitchyOmega_Chromium插件,以及导入Burp Suite证书,抓取https请求包


下一篇:webpack处理html中img标签引入图片不显示问题