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 * @cfg {String} placement how it is placed
15 * @cfg {String} trigger
16 * @cfg {String} over what (parent or empty to trigger manually.)
19 * Create a new Popover
20 * @param {Object} config The config object
23 Roo.bootstrap.Popover = function(config){
24 Roo.bootstrap.Popover.superclass.constructor.call(this, config);
27 Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
29 title: 'Fill in a title',
38 getAutoCreate : function(){
47 cls : 'popover-inner',
55 cls : 'popover-content',
66 // as it get's added to the bottom of the page.
67 onRender : function(ct, position)
69 Roo.bootstrap.Component.superclass.onRender.call(this, ct, position);
71 var cfg = Roo.apply({}, this.getAutoCreate());
75 cfg.cls += ' ' + this.cls;
78 cfg.style = this.style;
80 this.el = Roo.get(document.body).createChild(cfg, position);
87 el = (this.over == 'parent' ? this.parent().el : Roo.get(this.over);