try and get ctrl-enter to add a clear all
[roojs1] / Roo / bootstrap / Progress.js
index 54b148c..4034265 100644 (file)
@@ -8,12 +8,10 @@
 /**
  * @class Roo.bootstrap.Progress
  * @extends Roo.bootstrap.Component
+ * @children Roo.bootstrap.ProgressBar
  * Bootstrap Progress class
- * @cfg {Number} aria_valuenow aria-value now
- * @cfg {Number} aria_valuemin aria-value min
- * @cfg {Number} aria_valuemax aria-value max
- * @cfg {String} label label for the progress bar
- * @cfg {String} panel (success | info | warning | danger )
+ * @cfg {Boolean} striped striped of the progress bar
+ * @cfg {Boolean} active animated of the progress bar
  * 
  * 
  * @constructor
@@ -27,20 +25,25 @@ Roo.bootstrap.Progress = function(config){
 
 Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
     
-    aria_valuenow : false,
-    aria_valuemin : 0,
-    aria_valuemax : 100,
+    striped : false,
+    active: false,
     
     getAutoCreate : function(){
         var cfg = {
             tag: 'div',
-            cls: 'progress-bar'
+            cls: 'progress'
         };
+        
+        
+        if(this.striped){
+            cfg.cls += ' progress-striped';
+        }
       
-        if(this.aria_valuenow){
-            cfg['aria-valuenow'] = this.aria_valuenow;
+        if(this.active){
+            cfg.cls += ' active';
         }
         
+        
         return cfg;
     }