Results 1 to 4 of 4

Thread: How to get GXT TabPanel to animate like GWT TabLayoutPanel?

  1. #1
    Sencha User
    Join Date
    May 2011
    Location
    Germany
    Posts
    4
    Vote Rating
    0
      0  

    Question Answered: How to get GXT TabPanel to animate like GWT TabLayoutPanel?

    Hi,

    I'm looking for a way to animate the transitions between two TabItems inside a TabPanel just like TabLayoutPanel (click here for example)

    Small example of how my application looks like

    Code:
    Viewport viewport = new Viewport();
    viewport.setSize(1000, 800);
    
    XMLGrid xmlGrid = new XMLGrid();
    XMLTreeGrid xmlTree = new XMLTreeGrid();
    
    TabPanel tabPanel = new TabPanel();
    tabPanel.setSize(800, 600);
    
    TabItem a = new TabItem("XMLGrid");
    a.add(xmlGrid);
    
    TabItem b = new TabItem("XMLTreeGrid");
    b.add(xmlTree);
    
    tabPanel.add(a);
    tabPanel.add(b);
    
    viewport.add(tabPanel);
    viewport.layout();
          
    RootPanel.get().add(viewport);
    Is there anyway to achieve this scrolling animation between my XMLGrid and my XMLTreeGrid / between the two TabItem contents?

  2. Nothing for this is directly implemented into GXT. You would require a custom CardLayout for this. I have done this for a customer of mine already and can say that the only changes required are in the CardLayout class (which you will need to use in your TabPanel than as well. However i cannot give out the code.

  3. #2
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60
    Vote Rating
    131
      0  

    Default

    Nothing for this is directly implemented into GXT. You would require a custom CardLayout for this. I have done this for a customer of mine already and can say that the only changes required are in the CardLayout class (which you will need to use in your TabPanel than as well. However i cannot give out the code.

  4. #3
    Sencha User
    Join Date
    May 2011
    Location
    Germany
    Posts
    4
    Vote Rating
    0
      0  

    Default

    Thanks for you reply, Sven.

    I will take your hints and try to implement it this weekend.

  5. #4
    Sencha Premium Member
    Join Date
    Sep 2007
    Posts
    13,976
    Answers
    60
    Vote Rating
    131
      0  

    Default

    Quote Originally Posted by mgnann View Post
    Thanks for you reply, Sven.

    I will take your hints and try to implement it this weekend.
    Would be create if you could post this solution on the forums so everybody could see and use it.

Posting Permissions

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