projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7e5a72
)
Roo/bootstrap/menu/Item.js
author
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 04:13:58 +0000
(12:13 +0800)
committer
Edward
<edward@roojs.com>
Fri, 5 Dec 2014 04:13:58 +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
2b20612
..
60e4abd
100644
(file)
--- a/
Roo/bootstrap/menu/Item.js
+++ b/
Roo/bootstrap/menu/Item.js
@@
-15,6
+15,7
@@
Roo.bootstrap.menu = Roo.bootstrap.menu || {};
* @cfg {String} href the link
* @cfg {Boolean} disable (true | false) default false
* @cfg {Boolean} preventDefault (true | false) default true
+ * @cfg {String} icon Font awesome icon
*
*
* @constructor
@@
-57,6
+58,7
@@
Roo.extend(Roo.bootstrap.menu.Item, Roo.bootstrap.Component, {
html : '',
preventDefault: true,
disable : false,
+ icon : false,
getAutoCreate : function()
{
@@
-81,7
+83,7
@@
Roo.extend(Roo.bootstrap.menu.Item, Roo.bootstrap.Component, {
{
tag : 'a',
href : this.href || '#',
- html : this.html
+ cn : text
}
]
};