Threaded View

  1. #1
    Sencha User deepakgarg89's Avatar
    Join Date
    Nov 2012
    Location
    Gurgaon, India
    Posts
    43
    Answers
    4
    Vote Rating
    0
    deepakgarg89 is on a distinguished road

      0  

    Default Answered: On Logout revert back to Viewport

    Answered: On Logout revert back to Viewport


    Hi,

    In my app i had a logout button. I want when a user tap on it, user must be redirect to viewport.

    In my app.js i had used
    launch: function() {
    Ext.create('Advait.view.Viewport');
    },

    For logout i had use below code in view
    {
    xtype: 'button',
    docked: 'bottom',
    ui: 'decline',
    style: 'border-radius:0',
    text: 'Logout',
    action: 'logoutuser'
    }

    and a logout function in my controller
    logout: function() {
    console.log('User will Logout');
    //What should i add here which will reload my vieport again
    }

    I am getting console.log message successfully. Please tell me which method will take me to viewport again.

    Thanks

  2. Hmm...this is strange.
    What version of Sencha Touch are you using?

    I created a quick SenchaFiddle to simulate your app structure. Maybe you can have a look at this and compare it to your code. I hope my example does exactly this what you want to achieve? It definitely works
    Here's the link: http://www.senchafiddle.com/#O9nRv

    Best regards,
    Schildi

Thread Participants: 2

Tags for this Thread

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