momarf
14 Nov 2007, 1:53 AM
I am using Ext Action object in a toolbar and context menu. I am have same action object added to toolbar and menu. Following code is used to create the action
this.actionNewFolder = new Ext.Action({
text: 'New Folder',
handler: Default.createFolder.createDelegate(this),
iconCls: 'NewFolder'
});
When this action is added to both toolbar and menu the action text is shown on both places but i want to show the text only in context menu and hide it for toolbar.
Any ideas?
this.actionNewFolder = new Ext.Action({
text: 'New Folder',
handler: Default.createFolder.createDelegate(this),
iconCls: 'NewFolder'
});
When this action is added to both toolbar and menu the action text is shown on both places but i want to show the text only in context menu and hide it for toolbar.
Any ideas?