PDA

View Full Version : Event listeners "bottom to top"



tds4u
29 Nov 2019, 6:15 AM
Hello,

can someone tell me how to declare listeners to work bottom top top?

Expected: Panel2 => Panel1
Result: Panel1 => Panel2



Ext.define('Panel1', {
extend: 'Ext.grid.Panel',
title: 'Panel1',
width: 200,
listeners: {
containercontextmenu: function() {
alert('Panel1');
}
}
});
Ext.define('Panel2', {
extend: 'Panel1',
title: 'Panel2',
width: 200,
listeners: {
containercontextmenu: function() {
alert('Panel2');
}
}
});
Ext.application({
name : 'Fiddle',


launch : function() {
Ext.create('Panel2', {
layout: 'fit',
width: 200,
height: 200,
renderTo: Ext.getBody()
});
}
});