Results 1 to 2 of 2

Thread: viewport change the center

  1. #1
    Sencha User
    Join Date
    May 2010

    Default viewport change the center


    I've a viewport and I would like to change the center of the viewport when I click on a menu.

    Is it possible to load a new view ? Will it load from ajax, same with the controller attached to this view ?

  2. #2
    Sencha Premium Member
    Join Date
    Jun 2015
    Melbourne, Australia


    You can add views to the viewport:


    But I would expect that you would really be after a container with a card layout, you define cards in the container's items array then set them as the active when you click on the menu buttons.

Similar Threads

  1. Replies: 0
    Last Post: 21 Sep 2012, 11:31 AM
  2. Replies: 3
    Last Post: 21 Sep 2012, 11:28 AM
  3. Replies: 1
    Last Post: 4 Nov 2010, 12:43 AM
  4. Ext.Window - Center() should center to viewport, not page?
    By nutkenz in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 28 Dec 2008, 1:55 AM
  5. Is it possible to center a Viewport?
    By Micah Duke in forum Ext 2.x: Help & Discussion
    Replies: 7
    Last Post: 8 Apr 2008, 12:09 PM

Posting Permissions

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