/**
* @class Roo.bootstrap.Progress
* @extends Roo.bootstrap.Component
+ * @children Roo.bootstrap.ProgressBar
* Bootstrap Progress class
- * @cfg {Number} aria_valuenow aria-value now
- * @cfg {Number} aria_valuemin aria-value min
- * @cfg {Number} aria_valuemax aria-value max
- * @cfg {String} label label for the progress bar
- * @cfg {String} panel (success | info | warning | danger )
+ * @cfg {Boolean} striped striped of the progress bar
+ * @cfg {Boolean} active animated of the progress bar
*
*
* @constructor
Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component, {
- aria_valuenow : false,
- aria_valuemin : 0,
- aria_valuemax : 100,
- label : false,
- panel : false,
+ striped : false,
+ active: false,
getAutoCreate : function(){
var cfg = {
tag: 'div',
- cls: 'progress-bar'
+ cls: 'progress'
};
-
- if(this.aria_valuenow){
- cfg['aria-valuenow'] = this.aria_valuenow;
- }
- if(this.label){
- cfg.html = this.label;
- }
- if(this.panel){
- cfg.cls += 'progress-bar-' + this.panel;
+ if(this.striped){
+ cfg.cls += ' progress-striped';
}
+
+ if(this.active){
+ cfg.cls += ' active';
+ }
+
return cfg;
}