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  * 
16  * @constructor
17  * Create a new Progress
18  * @param {Object} config The config object
19  */
20
21 Roo.bootstrap.Progress = function(config){
22     Roo.bootstrap.Progress.superclass.constructor.call(this, config);
23 };
24
25 Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
26     
27     aria_valuenow : false,
28     aria_valuemin : 0,
29     aria_valuemax : 100,
30     
31     getAutoCreate : function(){
32         var cfg = {
33             tag: 'div',
34             cls: 'progress-bar'
35         };
36       
37         if(this.aria_valuenow){
38             cfg['aria-valuenow'] = this.aria_valuenow;
39         }
40         
41         return cfg;
42     }
43    
44 });
45
46  
47
48