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
16 * Create a new Popover
17 * @param {Object} config The config object
20 Roo.bootstrap.Popover = function(config){
21 Roo.bootstrap.Popover.superclass.constructor.call(this, config);
24 Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
26 title: 'Fill in a title',
33 getAutoCreate : function(){
42 cls : 'popover-inner',
50 cls : 'popover-content',
61 // as it get's added to the bottom of the page.
62 onRender : function(ct, position)
64 Roo.bootstrap.Component.superclass.onRender.call(this, ct, position);
66 var cfg = Roo.apply({}, this.getAutoCreate());
70 cfg.cls += ' ' + this.cls;
73 cfg.style = this.style;
75 this.el = Roo.get(document.body).createChild(cfg, position);