I would like to fire some function on tab click event of tab panel:
This works.
I have tried also with itemdblclick, but the same.
Where is the problem? How should i add dblclick handler?
Double click on tab doesn't work
Code:
var activeIndex=tabPanel.items.findIndex('id', tab.id);
tabPanel.getTabBar().getComponent(activeIndex).addListener('click', function (e, t, o) {
alert(tab.id);
}, tab);
This works.
But double click doesn't work:
Code:
var activeIndex=tabPanel.items.findIndex('id', tab.id);
tabPanel.getTabBar().getComponent(activeIndex).addListener('dblclick', function (e, t, o) {
alert(tab.id);
}, tab);
I have tried also with itemdblclick, but the same.
Where is the problem? How should i add dblclick handler?
br, Simon
Double click on tab doesn't work
Aucun commentaire:
Enregistrer un commentaire