Results 1 to 4 of 4

Thread: What is the right way of using showAnimation and hideAnimation ?

  1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    77
    Answers
    1

    Default What is the right way of using showAnimation and hideAnimation ?

    What is the right way of using showAnimation and hideAnimation ?
    I want to display fading in and out Ext.Panel.

    Also What is the right way of changing default animation in Ext.Sheet?

  2. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    show() and hide() should take an animation object.

    Ext.Sheet has the enterAnimation and exitAnimation. Also note the enter and exit configs.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

  3. #3
    Sencha Premium Member
    Join Date
    Feb 2012
    Posts
    84

    Default

    mitchellsimoens, could you elaborate please because you contradict the documentation. According to the Sencha Touch 2 api, sheet does not have an enterAnimation or an exitAnimation. It has hideAnimation & showAnimation. Is the documentation wrong?

    Also, can you speak to his question - how do you use hideAnimation & showAnimation, because half the time I try to define a hideAnimation, I get a weird error - "Uncaught TypeError: Cannot call method 'getPageBox' of null".

    riahut.com, I can't get hideAnimation to work with panels, but it works fine with a sheet. This is a snippet from my sheet config:

    Code:
    config: {
      ...
      showAnimation: "pop",
      hideAnimation: "popOut",
      ...
    }
    Now when the sheet is shown, it uses a pop animation & when it's hidden, it uses a popOut animation.

  4. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,449
    Answers
    3997

    Default

    It was enter/exitAnimation but to be common among the framework it is now show/hideAnimation. This change was in beta2
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Fullstack Engineer
    ________________
    Modus Create is based on the model of an open source team. We’re a remote, global team of experts in our field. To find out more about the work we do, head over to our website.

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •