Sr Julien
Sr Julien

Reputation: 494

Extjs - How use Ext.util.Observable to get all form objects event click?

I have an application with multiple windows as customers, products and so on. For each window I have several components as gridpanel, combo, button and so on. My application has a timeout of 15 minutes, this way, if the user is inactive for 15 minutes, the application is closed.

So how could I do to get all click events of all objects that interact with the user?

Upvotes: 0

Views: 110

Answers (1)

Alexander
Alexander

Reputation: 20224

I would use a controller and init it like so:

init: function (app) {
    this.control({
        'component': {
            click:function() {
            }
        }
    });

Upvotes: 2

Related Questions