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