major doc changes
[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  * @children Roo.bootstrap.TableCell
12  * @parent Roo.bootstrap.TableBody
13  * Bootstrap TableRow class
14  * @cfg {String} cls row class
15  * @cfg {String} align Aligns the content in a table row
16  * @cfg {String} bgcolor Specifies a background color for a table row
17  * @cfg {Number} charoff Sets the number of characters the content will be aligned from the character specified by the char attribute
18  * @cfg {String} valign Vertical aligns the content in a table row
19  * 
20  * @constructor
21  * Create a new TableRow
22  * @param {Object} config The config object
23  */
24
25 Roo.bootstrap.TableRow = function(config){
26     Roo.bootstrap.TableRow.superclass.constructor.call(this, config);
27 };
28
29 Roo.extend(Roo.bootstrap.TableRow, Roo.bootstrap.Component,  {
30     
31     cls: false,
32     align: false,
33     bgcolor: false,
34     charoff: false,
35     valign: false,
36     
37     getAutoCreate : function(){
38         var cfg = Roo.apply({}, Roo.bootstrap.TableRow.superclass.getAutoCreate.call(this));
39         
40         cfg = {
41             tag: 'tr'
42         };
43             
44         if(this.cls){
45             cfg.cls = this.cls;
46         }
47         if(this.align){
48             cfg.align = this.align;
49         }
50         if(this.bgcolor){
51             cfg.bgcolor = this.bgcolor;
52         }
53         if(this.charoff){
54             cfg.charoff = this.charoff;
55         }
56         if(this.valign){
57             cfg.valign = this.valign;
58         }
59         
60         return cfg;
61     }
62    
63 });
64
65  
66
67