X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_menu_Item.js.html;fp=docs%2Fsymbols%2Fsrc%2FRoo_menu_Item.js.html;h=f074f2d140df0964075b0e9db9cb6765d7acae9e;hb=c1c0168c0e693c4262f3f744a82419f9d9b1807f;hp=94edcaa709bc41376fa38b0fdbd8879dd275b84b;hpb=b282409b66344f6d0ff1999b55639cfd80097128;p=roojs1 diff --git a/docs/symbols/src/Roo_menu_Item.js.html b/docs/src/Roo_menu_Item.js.html similarity index 98% rename from docs/symbols/src/Roo_menu_Item.js.html rename to docs/src/Roo_menu_Item.js.html index 94edcaa709..f074f2d140 100644 --- a/docs/symbols/src/Roo_menu_Item.js.html +++ b/docs/src/Roo_menu_Item.js.html @@ -1,4 +1,4 @@ -
/*
+/home/alan/gitlive/roojs1/Roo/menu/Item.js /*
* Based on:
* Ext JS Library 1.1.1
* Copyright(c) 2006-2007, Ext JS, LLC.
@@ -25,7 +25,7 @@
}
};
Roo.extend(Roo.menu.Item, Roo.menu.BaseItem, {
-
+
/**
* @cfg {String} text
* The text to show on the menu item.
@@ -58,7 +58,7 @@
// private
ctype: "Roo.menu.Item",
-
+
// private
onRender : function(container, position){
var el = document.createElement("a");
@@ -69,9 +69,9 @@
el.target = this.hrefTarget;
}
el.className = this.itemCls + (this.menu ? " x-menu-item-arrow" : "") + (this.cls ? " " + this.cls : "");
-
+
var html = this.html.length ? this.html : String.format('{0}',this.text);
-
+
el.innerHTML = String.format(
'<img src="{0}" class="x-menu-item-icon {1}" />' + html,
this.icon || Roo.BLANK_IMAGE_URL, this.iconCls || '');
@@ -93,7 +93,7 @@
}
if(this.rendered){
var html = this.html.length ? this.html : String.format('{0}',this.text);
-
+
this.el.update(String.format(
'<img src="{0}" class="x-menu-item-icon {2}">' + html,
this.icon || Roo.BLANK_IMAGE_URL, this.text, this.iconCls || ''));