Roo/bootstrap/Popover.js
[roojs1] / Roo / bootstrap / Popover.js
1 /*
2  * - LGPL
3  *
4  * element
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.Popover
10  * @extends Roo.bootstrap.Component
11  * Bootstrap Element class
12  * @cfg {String} html contents of the popover
13  * @cfg {String} title of popover
14  * 
15  * @constructor
16  * Create a new Popover
17  * @param {Object} config The config object
18  */
19
20 Roo.bootstrap.Popover = function(config){
21     Roo.bootstrap.Popover.superclass.constructor.call(this, config);
22 };
23
24 Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
25     
26     tag: 'div',
27     cls: '',
28     html: '',
29     
30     
31     
32     getAutoCreate : function(){
33          
34         var cfg = {
35            cls : 'popover',
36            cn : [
37                 {
38                     cls : 'arrow'
39                 },
40                 {
41                     cls : 'popover-inner',
42                     cn : [
43                         {
44                             tag: 'h3'
45                             cls: 'popover-title',
46                             html : this.title
47                         },
48                         {
49                             cls : 'popover-content',
50                             html : this.html
51                         }
52                     ]
53                     
54                 }
55            ]
56         };
57         
58             return cfg;
59     }
60    
61 });
62
63  
64
65