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

index 3089378..4b792c1 100644 (file)
@@ -1,6 +1,46 @@
-/* 
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
+/*
+ * - LGPL
+ *
+ * Progress
+ * 
  */
 
+/**
+ * @class Roo.bootstrap.Progress
+ * @extends Roo.bootstrap.Component
+ * Bootstrap Progress class
+ * @cfg {String} size xs | sm | md | lg
+ * @cfg {Number} aria_valuenow aria-value now
+ * 
+ * @constructor
+ * Create a new Progress
+ * @param {Object} config The config object
+ */
+
+Roo.bootstrap.Progress = function(config){
+    Roo.bootstrap.Progress.superclass.constructor.call(this, config);
+};
+
+Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
+    
+    aria_valuenow : false,
+    
+    getAutoCreate : function(){
+        var cfg = {
+            tag: 'div',
+            cls: 'progress-bar'
+        };
+      
+        if(this.aria_valuenow){
+            cfg['aria-valuenow'] = this.aria_valuenow;
+        }
+        
+        return cfg;
+    }
+   
+});
+
 
\ No newline at end of file