PDA

View Full Version : Tab with contextmenu



LizMyself
2 Dec 2019, 4:46 AM
Hex togehter.

I tried to add a contextmenu to my tabs, but with no success. Is there no listeners for a rightclick or contextmenu any more? Which event shoul I use instead?

Thanks for your help.
LizMyself

wemerson.januario
7 Jan 2020, 12:27 PM
small starting example


xtype: 'tabpanel', items:[{
tab:{
title: 'rightclickme',
listeners:{
element: 'element',
contextmenu: function(evt){
evt.preventDefault();
console.log('contextmenu');
}
}
}
}]