/**
* @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 {Boolean} striped striped of the progress bar
+ * @cfg {Boolean} active animated of the progress bar
+ *
*
* @constructor
* Create a new Progress
Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component, {
- aria_valuenow : false,
- aria_valuemin : 0,
- aria_valuemax : 100,
+ striped : false,
+ active: false,
getAutoCreate : function(){
var cfg = {
tag: 'div',
- cls: 'progress-bar'
+ cls: 'progress'
};
+
+
+ if(this.striped){
+ cfg.cls += ' progress-striped';
+ }
- if(this.aria_valuenow){
- cfg['aria-valuenow'] = this.aria_valuenow;
+ if(this.active){
+ cfg.cls += ' active';
}
+
return cfg;
}