X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/530ef4b6c5b943cfa68b779d11cf7de29aa878bf..0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6:/src/widgets/menu/Item.js
diff --git a/src/widgets/menu/Item.js b/src/widgets/menu/Item.js
index 54ef90a2..829611e8 100644
--- a/src/widgets/menu/Item.js
+++ b/src/widgets/menu/Item.js
@@ -1,8 +1,8 @@
/*!
- * Ext JS Library 3.2.1
- * Copyright(c) 2006-2010 Ext JS, Inc.
- * licensing@extjs.com
- * http://www.extjs.com/license
+ * Ext JS Library 3.3.1
+ * Copyright(c) 2006-2010 Sencha Inc.
+ * licensing@sencha.com
+ * http://www.sencha.com/license
*/
/**
* @class Ext.menu.Item
@@ -54,6 +54,12 @@ Ext.menu.Item = Ext.extend(Ext.menu.BaseItem, {
* @cfg {Number} showDelay Length of time in milliseconds to wait before showing this item (defaults to 200)
*/
showDelay: 200,
+
+ /**
+ * @cfg {String} altText The altText to use for the icon, if it exists. Defaults to ''.
+ */
+ altText: '',
+
// doc'd in BaseItem
hideDelay: 200,
@@ -77,7 +83,7 @@ Ext.menu.Item = Ext.extend(Ext.menu.BaseItem, {
' target="{hrefTarget}"',
'',
'>',
- '',
+ '',
'',
''
);
@@ -100,7 +106,8 @@ Ext.menu.Item = Ext.extend(Ext.menu.BaseItem, {
hrefTarget: this.hrefTarget,
icon: this.icon || Ext.BLANK_IMAGE_URL,
iconCls: this.iconCls || '',
- text: this.itemText||this.text||' '
+ text: this.itemText||this.text||' ',
+ altText: this.altText || ''
};
},