From a7e5a7228d0ca2af8d3800ac4610945844479a33 Mon Sep 17 00:00:00 2001 From: Edward Date: Fri, 5 Dec 2014 12:13:41 +0800 Subject: [PATCH] Roo/bootstrap/menu/Item.js --- Roo/bootstrap/menu/Item.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 : [ -- 2.39.2