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

index c0b8efe..a44493f 100644 (file)
@@ -335,6 +335,27 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
                combobox
 
             ];
+            
+            if(this.indicatorpos == 'right'){
+                
+                cfg.cn = [
+                    {
+                       tag: 'label',
+                       //cls : 'input-group-addon',
+                       html : this.fieldLabel
+
+                    },
+                    {
+                       tag : 'i',
+                       cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
+                       tooltip : 'This field is required'
+                    },
+                    
+                    combobox
+
+                ];
+
+            }
 
         } else {