remove debugging code
[roojs1] / Roo / bootstrap / TableRow.js
1 /*
2  * - LGPL
3  *
4  * table row
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.TableRow
10  * @extends Roo.bootstrap.Component
11  * Bootstrap TableRow class
12  * @cfg {String} cls row class
13  * @cfg {String} align Aligns the content in a table row
14  * @cfg {String} bgcolor Specifies a background color for a table row
15  * @cfg {Number} charoff Sets the number of characters the content will be aligned from the character specified by the char attribute
16  * @cfg {String} valign Vertical aligns the content in a table row
17  * 
18  * @constructor
19  * Create a new TableRow
20  * @param {Object} config The config object
21  */
22
23 Roo.bootstrap.TableRow = function(config){
24     Roo.bootstrap.TableRow.superclass.constructor.call(this, config);
25 };
26
27 Roo.extend(Roo.bootstrap.TableRow, Roo.bootstrap.Component,  {
28     
29     cls: false,
30     align: false,
31     bgcolor: false,
32     charoff: false,
33     valign: false,
34     
35     getAutoCreate : function(){
36         var cfg = Roo.apply({}, Roo.bootstrap.TableRow.superclass.getAutoCreate.call(this));
37         
38         cfg = {
39             tag: 'tr'
40         };
41             
42         if(this.cls){
43             cfg.cls = this.cls;
44         }
45         if(this.align){
46             cfg.align = this.align;
47         }
48         if(this.bgcolor){
49             cfg.bgcolor = this.bgcolor;
50         }
51         if(this.charoff){
52             cfg.charoff = this.charoff;
53         }
54         if(this.valign){
55             cfg.valign = this.valign;
56         }
57         
58         return cfg;
59     }
60    
61 });
62
63  
64
65