我在extjs中使用了一个标签面板。我想在点击标签时显示警报。但我不知道如何。在EXTJS中的标签面板单击监听器
这就是我现在做的事:
{
xtype: 'tabpanel',
activeTab: 0,
region: 'center',
items: [
{
xtype: 'panel',
title: 'All',
items: [grid]
},
{
xtype: 'panel',
title: 'Closed'
},
{
xtype: 'panel',
title: 'Open'
}
],
listeners: {
click: function() {
alert('test');
}
}
}
如何被显示完毕,关闭或当单击该选项卡上打开?