1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default setActiveItems issues

    setActiveItems issues


    Hi all,

    I am having hard times understanding why i can't get back to the previous panel using this code below

    Code:
    appsDetails = Ext.extend(Ext.Panel, {
        layout: 'fit',
        scroll: 'verticall',
        
        initComponent: function() {
            
            this.dockedItems = [{
                xtype: 'toolbar',
                items: [{
                    ui: 'back',
                    scope: 'this',
                    handler: function() {
                        
                        console.log(this.ownerCt) //This returns "undefined"
                        
                        this.ownerCt.setActiveItem(this.prevCard, {
                            type: 'slide',
                            reverse: true,
                            scope: this,
                            after: function() {
                                this.destroy();
                            }
                        })
                    }
                }]
            }];
            
            this.items = [{
                styleHtmlContent: true,
                tpl: description,
                data: this.record.data
            }];
            
            appsDetails.superclass.initComponent.call(this);
        }
    });
    Actually when i click on the back button i have this error :
    Uncaught TypeError: Cannot call method 'setActiveItem' of undefined

    Thanks for your help
    Last edited by slmd; 18 Oct 2011 at 11:48 PM. Reason: Rephrasing

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default


    Any idea?

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    62
    Vote Rating
    0
    slmd is on a distinguished road

      0  

    Default


    Sorry for having bothered you with this. I had to change this line "scope: 'this'," to this "scope: this,"

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar