1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Vote Rating
    0
    dmartz is on a distinguished road

      0  

    Question card layout, but how to slide animate?

    card layout, but how to slide animate?


    In Extjs4, changing a card appears to be done via setActiveItem(index) whereas in Touch the same function has setActiveItem(index,animation).

    How can I apply a slide animation to a card layout in Extjs4?

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,617
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    I know the next and prev methods on the layout accept an anim and wrap
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  3. #3
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Vote Rating
    0
    dmartz is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    I know the next and prev methods on the layout accept an anim and wrap
    Thank you!

    Is there an example somewhere for preparing an animation. What I thought would work, is not.

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,617
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Lucky enough, I have a plugin that I worked with next and prev...

    Code:
    panel.layout.next({
        type : 'slide',
        reverse : true,
        ....
    }, true);
    May not use reverse as it defaults to false but threw it in there just so you can understand a little more.

    The true at the end is for wrap. Basically if you get to the last item if you want it to go to the first item if you do next.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  5. #5
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Vote Rating
    0
    dmartz is on a distinguished road

      0  

    Default


    Thanks for the rapid reply

    I tried this exact line
    panel.layout.next({ type: 'slide', reverse: true }, true);
    but there was no transition effect.

  6. #6
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,617
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    ok... seems it's broken now
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  7. #7
    Sencha User
    Join Date
    Dec 2010
    Posts
    9
    Vote Rating
    0
    dmartz is on a distinguished road

      0  

    Default


    Yes, I just read the code and "next" calls "setActiveItem" with an animation parameter that it does not support.

    Bummer.

    Is this a known/logged bug? How do I check/report that?

  8. #8
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,617
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Quote Originally Posted by dmartz View Post
    Yes, I just read the code and "next" calls "setActiveItem" with an animation parameter that it does not support.

    Bummer.

    Is this a known/logged bug? How do I check/report that?
    It was already in out bug tracker.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  9. #9
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,617
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Looks like it won't make 4.0 GA but the release after it.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    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 almost in print!

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

  10. #10
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    2,192
    Vote Rating
    58
    slemmon is just really nice slemmon is just really nice slemmon is just really nice slemmon is just really nice

      0  

    Default


    When you say next release do you mean 4.1? I was just looking to see if there was any animation allowable with next/prev in 4.0.2 and looks like there is not.

    Also, I assume setActiveItem would have that same feature-set in the end, too. Does that sound right?

Similar Threads

  1. panel fit height + animate card flip
    By qwirker in forum Ext 3.x: Help & Discussion
    Replies: 4
    Last Post: 25 Aug 2010, 1:06 PM
  2. dynamicly add a card with a slide effect
    By Kaimite in forum Sencha Touch 1.x: Discussion
    Replies: 11
    Last Post: 16 Aug 2010, 8:54 AM
  3. Card Layout with Slide Out and Slide In of the components
    By prasadk14 in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 27 Jul 2010, 11:35 PM
  4. Animate Toolbar Prob - Slide out one slide in another
    By coolbeans in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 19 Aug 2009, 9:39 AM