Fix #6465 - drag drop for cards
[roojs1] / Roo / bootstrap / TableRow.js
index bb1c41c..9e20d2a 100644 (file)
@@ -1,18 +1,22 @@
 /*
  * - LGPL
  *
- * column
+ * table row
  * 
  */
 
 /**
- * @class Roo.bootstrap.Column
+ * @class Roo.bootstrap.TableRow
  * @extends Roo.bootstrap.Component
- * Bootstrap Column class
- * @cfg {number} colspan  Number of columsn to span
+ * 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 Column
+ * Create a new TableRow
  * @param {Object} config The config object
  */
 
@@ -22,12 +26,34 @@ 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'
-       }
+        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;
     }