Roo/bootstrap/Progress.js
authorEdward <edward@roojs.com>
Thu, 10 Apr 2014 07:58:51 +0000 (15:58 +0800)
committerEdward <edward@roojs.com>
Thu, 10 Apr 2014 07:58:51 +0000 (15:58 +0800)
Roo/bootstrap/Progress.js

index 54b148c..e141ef5 100644 (file)
@@ -30,6 +30,8 @@ Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
     aria_valuenow : false,
     aria_valuemin : 0,
     aria_valuemax : 100,
+    label : false,
+    panel : false,
     
     getAutoCreate : function(){
         var cfg = {
@@ -41,6 +43,14 @@ Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
             cfg['aria-valuenow'] = this.aria_valuenow;
         }
         
+        if(this.label){
+            cfg.html = this.label;
+        }
+        
+        if(this.panel){
+            cfg.cls += 'progress-bar-' + this.panel;
+        }
+        
         return cfg;
     }