Roo/bootstrap/Progress.js
[roojs1] / Roo / bootstrap / Progress.js
1 /*
2  * - LGPL
3  *
4  * Progress
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.Progress
10  * @extends Roo.bootstrap.Component
11  * Bootstrap Progress class
12  * @cfg {Number} aria_valuenow aria-value now
13  * @cfg {Number} aria_valuemin aria-value min
14  * @cfg {Number} aria_valuemax aria-value max
15  * @cfg {String} label label for the progress bar
16  * 
17  * @constructor
18  * Create a new Progress
19  * @param {Object} config The config object
20  */
21
22 Roo.bootstrap.Progress = function(config){
23     Roo.bootstrap.Progress.superclass.constructor.call(this, config);
24 };
25
26 Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
27     
28     aria_valuenow : false,
29     aria_valuemin : 0,
30     aria_valuemax : 100,
31     
32     getAutoCreate : function(){
33         var cfg = {
34             tag: 'div',
35             cls: 'progress-bar'
36         };
37       
38         if(this.aria_valuenow){
39             cfg['aria-valuenow'] = this.aria_valuenow;
40         }
41         
42         return cfg;
43     }
44    
45 });
46
47  
48
49