From: Edward Date: Fri, 5 Dec 2014 04:13:41 +0000 (+0800) Subject: Roo/bootstrap/menu/Item.js X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=a7e5a7228d0ca2af8d3800ac4610945844479a33;p=roojs1 Roo/bootstrap/menu/Item.js --- diff --git a/Roo/bootstrap/menu/Item.js b/Roo/bootstrap/menu/Item.js index 541f03fb2f..2b206124ba 100644 --- a/Roo/bootstrap/menu/Item.js +++ b/Roo/bootstrap/menu/Item.js @@ -60,6 +60,21 @@ Roo.extend(Roo.bootstrap.menu.Item, Roo.bootstrap.Component, { getAutoCreate : function() { + var text = [ + { + tag : 'span', + cls : 'roo-menu-item-text', + html : this.html + } + ]; + + if(this.icon){ + text.unshift({ + tag : 'i', + cls : 'fa ' + this.icon + }) + } + var cfg = { tag : 'li', cn : [