Roo/bootstrap/TriggerField.js
authoredward <edward@roojs.com>
Tue, 8 Aug 2017 03:52:52 +0000 (11:52 +0800)
committeredward <edward@roojs.com>
Tue, 8 Aug 2017 03:52:52 +0000 (11:52 +0800)
Roo/bootstrap/TriggerField.js

index 71b1e3c..a598a21 100644 (file)
@@ -271,23 +271,27 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
         if (align ==='left' && this.fieldLabel.length && this.labelWidth) {
             
 //                Roo.log("left and has label");
-                cfg.cn = [
-                    
-                    {
-                        tag: 'label',
-                        'for' :  id,
-                        cls : 'control-label col-sm-' + this.labelWidth,
-                        html : this.fieldLabel
-                        
-                    },
-                    {
-                        cls : "col-sm-" + (12 - this.labelWidth), 
-                        cn: [
-                            combobox
-                        ]
-                    }
-                    
-                ];
+            cfg.cn = [
+                {
+                    tag : 'i',
+                    cls : 'roo-required-indicator left-indicator text-danger fa fa-lg fa-star',
+                    tooltip : 'This field is required'
+                },
+                {
+                    tag: 'label',
+                    'for' :  id,
+                    cls : 'control-label col-sm-' + this.labelWidth,
+                    html : this.fieldLabel
+
+                },
+                {
+                    cls : "col-sm-" + (12 - this.labelWidth), 
+                    cn: [
+                        combobox
+                    ]
+                }
+
+            ];
         } else if ( this.fieldLabel.length) {
 //                Roo.log(" label");
                  cfg.cn = [