【发布时间】:2012-02-13 19:34:08
【问题描述】:
当我点击工具栏上的按钮时,菜单打开并保持打开状态。
所以我需要点击关闭来隐藏下拉菜单框。这不是我所期望的。
有人知道如何自动隐藏工具栏菜单吗?
这是我的代码:
{
xtype: 'toolbar',
itemId : 'mainMenu',
items: [
{
text : 'Main Menu 1',
menu : {
xtype: 'menu',
items : [
{
xtype: 'button',
text: 'Contacts',
itemId : 'extjs'
},{
xtype: 'button',
text: 'Orders',
itemId: 'extjs2'
}
]
}
},{
text : 'Main Menu 2',
xtype : 'button',
itemId : 'extjs3'
}
]
}
【问题讨论】: