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  * @cfg {String} cls element class
13  * @cfg {String} tag element tag (thead|tbody|tfoot) default tbody
14  * 
15  * @constructor
16  * Create a new TableBody
17  * @param {Object} config The config object
18  */
19
20 Roo.bootstrap.TableBody = function(config){
21     Roo.bootstrap.TableBody.superclass.constructor.call(this, config);
22 };
23
24 Roo.extend(Roo.bootstrap.TableBody, Roo.bootstrap.Component,  {
25     
26     cls: false,
27     tag: false,
28     
29     getAutoCreate : function(){
30         var cfg = Roo.apply({}, Roo.bootstrap.TableBody.superclass.getAutoCreate.call(this));
31         
32         cfg = {
33             tag: 'tbody'
34         }
35         
36         if(this.tag){
37             cfg.tag = this.tag;
38         }
39         
40         if (this.html) {
41             cfg.html=this.html
42         }
43         if (this.cls) {
44             cfg.cls=this.cls
45         }
46         
47         return cfg;
48     }
49    
50 });
51
52  
53
54