Roo/bootstrap/Progress.js
authorEdward <edward@roojs.com>
Thu, 10 Apr 2014 08:06:28 +0000 (16:06 +0800)
committerEdward <edward@roojs.com>
Thu, 10 Apr 2014 08:06:28 +0000 (16:06 +0800)
Roo/bootstrap/Progress.js

index 7283a14..5985db0 100644 (file)
@@ -39,6 +39,7 @@ Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
     role : false,
     striped : false,
     active: false,
+    sr_only: false,
     
     getAutoCreate : function(){
         var cfg = {
@@ -52,6 +53,7 @@ Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
             ]
         };
         
+        
         if(this.striped){
             cfg.cls += ' progress-striped';
         }
@@ -60,6 +62,14 @@ Roo.extend(Roo.bootstrap.Progress, Roo.bootstrap.Component,  {
             cfg.cls += ' active';
         }
         
+        if(this.sr_only){
+            cfg.cn[0].cn = {
+                tag: 'span',
+                cls: 'sr-only',
+                html: this.sr_only
+            }
+        }
+        
         if(this.role){
             cfg.cn[0].role = this.role;
         }