Roo/bootstrap/TriggerField.js
authoredward <edward@roojs.com>
Thu, 23 Nov 2017 11:14:19 +0000 (19:14 +0800)
committeredward <edward@roojs.com>
Thu, 23 Nov 2017 11:14:19 +0000 (19:14 +0800)
Roo/bootstrap/TriggerField.js

index b4efb9f..9b6c5b4 100644 (file)
@@ -301,7 +301,14 @@ Roo.extend(Roo.bootstrap.TriggerField, Roo.bootstrap.Input,  {
                         tag: 'label',
                         'for' :  id,
                         cls : 'control-label',
-                        html : this.fieldLabel + '<i class="roo-required-indicator right-indicator text-danger fa fa-lg fa-star"></i>'
+                        html : this.fieldLabel,
+                        cn: [
+                            {
+                                tag : 'i',
+                                cls : 'roo-required-indicator right-indicator text-danger fa fa-lg fa-star',
+                                tooltip : 'This field is required'
+                            }
+                        ]
                     },
                     {
                         cls : "",