1. #1
    Ext User
    Join Date
    Jul 2008
    Location
    Swindon, UK
    Posts
    73
    Vote Rating
    4
    Kango_V is on a distinguished road

      0  

    Default Animated accordian layout?

    Animated accordian layout?


    how can i animate the content panels in an accordian layout? I'd like them to slide up and down.

    cheers

  2. #2
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    not sure if this would work, but the source of AccordianLayout turns anim off... if you extend and turn it back on, it might work....

    Code:
      @Override
      protected void renderComponent(Component component, int index, El target) {
        ContentPanel cp = (ContentPanel) component;
        cp.setCollapsible(true);
        cp.setAnimCollapse(false);

  3. #3
    Ext User
    Join Date
    Jul 2008
    Location
    Swindon, UK
    Posts
    73
    Vote Rating
    4
    Kango_V is on a distinguished road

      0  

    Default


    Right, good idea, i#ll give it a go. Thanks

  4. #4
    Ext User
    Join Date
    Jul 2008
    Location
    Swindon, UK
    Posts
    73
    Vote Rating
    4
    Kango_V is on a distinguished road

      0  

    Default


    I coulnd't override
    renderComponent(Component component, int index, El target) as i get an exception about the component being already rendered.

    I also tried extending ContentPanel to force animation, but then the panels do not expand.

    Any ideas?

Thread Participants: 1