ExtJS 4 - Mark a red asterisk on an required field

后端 未结 11 2314
长发绾君心
长发绾君心 2020-12-08 08:24

I have this problem where I need to add a red asterisk beside a fieldLabel when a field is marked as \"required\" (or allowBlank: false)

In

11条回答
  •  旧时难觅i
    2020-12-08 08:46

    Their are so many ways to do this and few of which you can find above, what I am suggesting is:

     {
        xtype : 'label',
        html:'First Name*',
        width:50,
     }
    

    Simply you can put both asterisk and Label text in single html property.

提交回复
热议问题