Roo/bootstrap/Popover.js
authorEdward <edward@roojs.com>
Fri, 14 Mar 2014 09:02:03 +0000 (17:02 +0800)
committerEdward <edward@roojs.com>
Fri, 14 Mar 2014 09:02:03 +0000 (17:02 +0800)
Roo/bootstrap/Popover.js

index 7abb8c9..b45ee19 100644 (file)
@@ -68,6 +68,14 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component,  {
         
         return cfg;
     },
+    setTitle: function(str)
+    {
+        this.el.select('.popover-title',true).first().dom.innerHTML = str;
+    },
+    setContent: function(str)
+    {
+        this.el.select('.popover-content',true).first().dom.innerHTML = str;
+    },
     // as it get's added to the bottom of the page.
     onRender : function(ct, position)
     {