PDA

View Full Version : Global Event Listener



kgvsekar
12 Aug 2010, 9:57 AM
Hi All,

Is there a way to have global event listener at the parent component (ex: viewport)? Below is the use case

When an error occurs during user action in page, 'Error Message Panel' displayed at the top of the page. The error message panel should disappear when user performs any action (click, keyup,..) in any of the components under different Ext.Panel.

Like to have global listener for all events at the parent component (let say viewport)

Please advise on this.

Thank You!
Sekaran

kgvsekar
12 Aug 2010, 10:56 AM
Found solution by having 'Ext.getBody().on('click', function() { alert('clicked')}); '