Uncommited changes synced
[roojs1] / Roo / bootstrap / TableRow.js
index 139e11b..9e20d2a 100644 (file)
@@ -9,6 +9,11 @@
  * @class Roo.bootstrap.TableRow
  * @extends Roo.bootstrap.Component
  * Bootstrap TableRow class
+ * @cfg {String} cls row class
+ * @cfg {String} align Aligns the content in a table row
+ * @cfg {String} bgcolor Specifies a background color for a table row
+ * @cfg {Number} charoff Sets the number of characters the content will be aligned from the character specified by the char attribute
+ * @cfg {String} valign Vertical aligns the content in a table row
  * 
  * @constructor
  * Create a new TableRow
@@ -21,14 +26,35 @@ Roo.bootstrap.TableRow = function(config){
 
 Roo.extend(Roo.bootstrap.TableRow, Roo.bootstrap.Component,  {
     
+    cls: false,
+    align: false,
+    bgcolor: false,
+    charoff: false,
+    valign: false,
+    
     getAutoCreate : function(){
         var cfg = Roo.apply({}, Roo.bootstrap.TableRow.superclass.getAutoCreate.call(this));
        
-       cfg = {
-           tag: 'tr'
-       }
-       Roo.log('row');
-        Roo.log(cfg);
+        cfg = {
+            tag: 'tr'
+        };
+            
+        if(this.cls){
+            cfg.cls = this.cls;
+        }
+        if(this.align){
+            cfg.align = this.align;
+        }
+        if(this.bgcolor){
+            cfg.bgcolor = this.bgcolor;
+        }
+        if(this.charoff){
+            cfg.charoff = this.charoff;
+        }
+        if(this.valign){
+            cfg.valign = this.valign;
+        }
+       
         return cfg;
     }