Duke
Duke

Reputation: 1731

panel event not working (sencha touch)

I want to add an intro page to my sencha touch (ext js for mobile devices) that redirect user after some time for this i want to use panel event listener that if found in various documents, i implemented it like this :

    Ext.define('myapp.view.intro', {
    extend: 'Ext.Panel',
    config: 
    {
       fullscreen: true
    },
    listeners:
        { 
            resize: function(intro, w, h) {
            alert('Panel resized to ' + w + 'x' + h);
        }
        }


   });

but when i open it with chrome(web-kit) nothing happens(i tested many other events like 'render' and ..) no errors occurred too!

Upvotes: 1

Views: 659

Answers (1)

fuzzyLikeSheep
fuzzyLikeSheep

Reputation: 473

listeners should go inside the config object

Upvotes: 1

Related Questions