diablo
15 Feb 2012, 6:32 AM
Hello,
following case:
Ext.create('Ext.Button', {
text : 'Menu button',
renderTo : Ext.getBody(),
arrowAlign: 'bottom',
handler: function(){alert("clicked")},
menu : [
{text: 'Item 1'},
{text: 'Item 2'},
{text: 'Item 3'},
{text: 'Item 4'}
]
});
Wouldn't be nice that on button click the handler is triggered and on arrow trigger click the menu is displayed?
Why both on click?
Thanks & Rergards
following case:
Ext.create('Ext.Button', {
text : 'Menu button',
renderTo : Ext.getBody(),
arrowAlign: 'bottom',
handler: function(){alert("clicked")},
menu : [
{text: 'Item 1'},
{text: 'Item 2'},
{text: 'Item 3'},
{text: 'Item 4'}
]
});
Wouldn't be nice that on button click the handler is triggered and on arrow trigger click the menu is displayed?
Why both on click?
Thanks & Rergards