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 * @cfg {String} panel (success | info | warning | danger )
17 * @cfg {String} role role of the progress bar
18 * @cfg {Boolean} striped striped of the progress bar
19 * @cfg {Boolean} active animated of the progress bar
20 * @cfg {String} sr_only text
24 * Create a new Progress
25 * @param {Object} config The config object
28 Roo.bootstrap.Progress = function(config){
29 Roo.bootstrap.Progress.superclass.constructor.call(this, config);
32 Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component, {
34 aria_valuenow : false,
44 getAutoCreate : function(){
58 cfg.cls += ' progress-striped';
74 cfg.cn[0].role = this.role;
77 if(this.aria_valuenow){
78 cfg.cn[0]['aria-valuenow'] = this.aria_valuenow;
82 cfg.cn[0].html = this.label;
86 cfg.cn[0].cls += ' progress-bar-' + this.panel;