projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
668a465
)
Roo/bootstrap/Popover.js
author
Alan Knowles
<alan@roojs.com>
Thu, 28 Jan 2021 08:12:45 +0000
(16:12 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 28 Jan 2021 08:12:45 +0000
(16:12 +0800)
Roo/bootstrap/Popover.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/Popover.js
b/Roo/bootstrap/Popover.js
index
c82d955
..
8795b8a
100644
(file)
--- a/
Roo/bootstrap/Popover.js
+++ b/
Roo/bootstrap/Popover.js
@@
-64,8
+64,14
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
getChildContainer : function()
{
getChildContainer : function()
{
+ return this.contentEl;
return this.el.select('.popover-content',true).first();
},
return this.el.select('.popover-content',true).first();
},
+ getPopoverHeader : function()
+ {
+ return this.headerEl
+ }
+
getAutoCreate : function(){
getAutoCreate : function(){
@@
-113,8
+119,8
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
setContent: function(str)
{
this.html = str;
setContent: function(str)
{
this.html = str;
- if (this.
e
l) {
- this.
el.select('.popover-content',true).first()
.dom.innerHTML = str;
+ if (this.
contentE
l) {
+ this.
contentEl
.dom.innerHTML = str;
}
},
}
},
@@
-153,6
+159,9
@@
Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, {
Roo.EventManager.onWindowResize(this.resizeMask, this, true);
Roo.EventManager.onWindowResize(this.resizeMask, this, true);
+ this.contentEl = this.el.select('.popover-content',true).first();
+ this.headerEl = this.el.select('.popover-header',true).first();
+
this.initEvents();
},
this.initEvents();
},