1. #1
    Sencha User
    Join Date
    Feb 2011
    Posts
    33
    Vote Rating
    0
    mescalito2 is on a distinguished road

      0  

    Default setDirection() in Sencha Designer 2

    setDirection() in Sencha Designer 2


    Hi! thanks for your time!
    Looking at the example you provided in the kitchensink you have this:

    Code:
                            text: 'Slide Right',
                            card: false,
                            id: 'SlideRight',
                            view: 'SlideRight',
                            animation: {
                                type: 'slide',
                                direction: 'right'
                            },
    Based on that example I don't know how to assign the animation = {} property using Sencha designer 2 (I think there is no way). Then I tried to do it programmatic and it didn't worked. I just want to animate from right to left when I change the active card. any idea? thanks!

    This is my code
    Code:
        buttonBackImageDetalle: function(button, e, options) {
    
    
            var main = this.getMain();
            Ext.fx.Animation.setDirection('right');
            main.setActiveItem(1);
            console.log('<-- back');
    
    
        }

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,790
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Instead of affecting the direction, I usually change the reverse config using setReversed(false)
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2011
    Posts
    33
    Vote Rating
    0
    mescalito2 is on a distinguished road

      0  

    Default


    How? code please!

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    36,790
    Vote Rating
    833
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    The animation config is on the layout. Get that and then do the setReversed
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User DevlisH's Avatar
    Join Date
    Aug 2010
    Location
    Stgo., Chile
    Posts
    1
    Vote Rating
    0
    DevlisH is on a distinguished road

      0  

    Default


    Try this code:

    Code:
    main.getLayout().setAnimation({
                type : 'slide',
                direction : 'right' // or left
    });
    and the you call setActiveMethod() to trigger the animation.

    Cheers!

Thread Participants: 2

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi