Roo/bootstrap/MenuItem.js
authorAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 06:28:01 +0000 (14:28 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 16 May 2014 06:28:01 +0000 (14:28 +0800)
Roo/bootstrap/MenuItem.js

index 9bdbc54..7a003bc 100644 (file)
@@ -43,14 +43,15 @@ Roo.extend(Roo.bootstrap.MenuItem, Roo.bootstrap.Component,  {
     getAutoCreate : function(){
         var cfg= {
            tag: 'li',
+        cls: 'dropdown-menu-item',
            cn: [
-               {
-                   tag : 'a',
-                   href : '#',
-                   html : 'Link'
-               }
+            {
+                tag : 'a',
+                href : '#',
+                html : 'Link'
+            }
            ]
-        };
+    };
        
         cfg.cn[0].href = this.href || cfg.cn[0].href ;
         cfg.cn[0].html = this.html || cfg.cn[0].html ;