Roo/bootstrap/menu/MenuItem.js
authorEdward <edward@roojs.com>
Thu, 4 Dec 2014 08:41:27 +0000 (16:41 +0800)
committerEdward <edward@roojs.com>
Thu, 4 Dec 2014 08:41:27 +0000 (16:41 +0800)
Roo/bootstrap/menu/MenuItem.js

index 2f1c435..4c6e5f4 100644 (file)
@@ -42,7 +42,18 @@ Roo.extend(Roo.bootstrap.menu.MenuItem, Roo.bootstrap.Component,  {
     
     getAutoCreate : function()
     {
+        var cfg = {
+            tag : 'li',
+            cn : [
+                {
+                    tag : 'a',
+                    href : this.href || '#',
+                    html : this.html
+                }
+            ]
+        };
         
+        return cfg;
         
     }
 });