projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa3022d
)
Roo/bootstrap/menu/Item.js
author
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 04:13:41 +0000
(12:13 +0800)
committer
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 04:13:41 +0000
(12:13 +0800)
Roo/bootstrap/menu/Item.js
patch
|
blob
|
history
diff --git
a/Roo/bootstrap/menu/Item.js
b/Roo/bootstrap/menu/Item.js
index
541f03f
..
2b20612
100644
(file)
--- 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 : [