4811e7e0d43de46511792fb9bec933e35d9a5f87
[roojs1] / Roo / bootstrap / TableCell.js
1 /*
2  * - LGPL
3  *
4  * column
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.Column
10  * @extends Roo.bootstrap.Component
11  * Bootstrap Column class
12  * @cfg {number} colspan  Number of columsn to span
13  * 
14  * @constructor
15  * Create a new Column
16  * @param {Object} config The config object
17  */
18
19 Roo.bootstrap.TableCell = function(config){
20     Roo.bootstrap.TableCell.superclass.constructor.call(this, config);
21 };
22
23 Roo.extend(Roo.bootstrap.TableCell, Roo.bootstrap.Component,  {
24     
25     getAutoCreate : function(){
26         var cfg = Roo.apply({}, Roo.bootstrap.TableCell.superclass.getAutoCreate.call(this));
27         
28         cfg = {
29             tag: 'td'
30         }
31         if (this.html) {
32             cfg.html=this.html
33         }
34         if (this.cls) {
35             cfg.cls=this.cls
36         }
37         
38         return cfg;
39     }
40    
41 });
42
43  
44
45