major doc changes
[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  * @children Roo.bootstrap.ProgressBar
12  * Bootstrap Progress class
13  * @cfg {Boolean} striped striped of the progress bar
14  * @cfg {Boolean} active animated of the progress bar
15  * 
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     striped : false,
29     active: false,
30     
31     getAutoCreate : function(){
32         var cfg = {
33             tag: 'div',
34             cls: 'progress'
35         };
36         
37         
38         if(this.striped){
39             cfg.cls += ' progress-striped';
40         }
41       
42         if(this.active){
43             cfg.cls += ' active';
44         }
45         
46         
47         return cfg;
48     }
49    
50 });
51
52  
53
54