Affichage des articles dont le libellé est Double click on tab doesnt work. Afficher tous les articles
Affichage des articles dont le libellé est Double click on tab doesnt work. Afficher tous les articles

lundi 24 novembre 2014

Double click on tab doesn't work

I would like to fire some function on tab click event of tab panel:

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