Roo/bootstrap/TableBody.js
[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     html: false,
25     cls: false,
26     tag: false,
27     
28     getAutoCreate : function(){
29         var cfg = Roo.apply({}, Roo.bootstrap.TableBody.superclass.getAutoCreate.call(this));
30         
31         cfg = {
32             tag: 'tbody'
33         }
34         
35         if(this.tag){
36             cfg.tag = this.tag;
37         }
38         
39         if (this.html) {
40             cfg.html=this.html
41         }
42         if (this.cls) {
43             cfg.cls=this.cls
44         }
45         
46         return cfg;
47     }
48    
49 });
50
51  
52
53