projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
825a2cb
)
Roo/bootstrap/Progress.js
author
Edward
<edward@roojs.com>
Thu, 10 Apr 2014 07:58:51 +0000
(15:58 +0800)
committer
Edward
<edward@roojs.com>
Thu, 10 Apr 2014 07:58:51 +0000
(15:58 +0800)
Roo/bootstrap/Progress.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Progress.js
b/Roo/bootstrap/Progress.js
index
54b148c
..
e141ef5
100644
(file)
--- a/
Roo/bootstrap/Progress.js
+++ b/
Roo/bootstrap/Progress.js
@@
-30,6
+30,8
@@
Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component, {
aria_valuenow : false,
aria_valuemin : 0,
aria_valuemax : 100,
+ label : false,
+ panel : false,
getAutoCreate : function(){
var cfg = {
@@
-41,6
+43,14
@@
Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component, {
cfg['aria-valuenow'] = this.aria_valuenow;
}
+ if(this.label){
+ cfg.html = this.label;
+ }
+
+ if(this.panel){
+ cfg.cls += 'progress-bar-' + this.panel;
+ }
+
return cfg;
}