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