Roo/bootstrap/CheckBox.js
authorEdward <edward@roojs.com>
Thu, 25 Jun 2015 08:06:39 +0000 (16:06 +0800)
committerEdward <edward@roojs.com>
Thu, 25 Jun 2015 08:06:39 +0000 (16:06 +0800)
Roo/bootstrap/CheckBox.js

index 26ae989..c9d9fa9 100644 (file)
@@ -172,13 +172,18 @@ Roo.extend(Roo.bootstrap.CheckBox, Roo.bootstrap.Input,  {
                 
         };
          if(this.boxLabel){
-            cfg.cn.push( {
+             var boxLabelCfg = {
                 tag: 'label',
                 //'for': id, // box label is handled by onclick - so no for...
                 cls: 'box-label',
                 html: this.boxLabel
-                
-            });
+            }
+            
+            if(this.tooltip){
+                boxLabelCfg.tooltip = this.tooltip;
+            }
+             
+            cfg.cn.push(boxLabelCfg);
         }