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