Fix #6464 - card header
[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 {Boolean} striped striped of the progress bar
13  * @cfg {Boolean} active animated of the progress bar
14  * 
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     striped : false,
28     active: false,
29     
30     getAutoCreate : function(){
31         var cfg = {
32             tag: 'div',
33             cls: 'progress'
34         };
35         
36         
37         if(this.striped){
38             cfg.cls += ' progress-striped';
39         }
40       
41         if(this.active){
42             cfg.cls += ' active';
43         }
44         
45         
46         return cfg;
47     }
48    
49 });
50
51  
52
53