Results 1 to 2 of 2

Thread: Change center view on route

  1. #1
    Sencha User
    Join Date
    Aug 2007
    Posts
    1

    Default Change center view on route

    Hi

    is there any method to change the x-type view of the center region of Ext.layout.container.Border on the view controller?

    thanks in advance

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

    Default

    Its hard to give an exact answer without more info, but my guess would be:

    1. Make the centre region a 'card' layout and add a reference to it.
    2. From the view controller use .lookupReference() to get a handle on the centre region.
    3. Then you can .setActiveItem() on the centre region to change the card.

    I hope this helps.

Similar Threads

  1. Project build breaks in SA 4.2.1 after upgrading to 6.5.x / Ext.app.route.Route
    By rmaliborski in forum Sencha Architect 4.x: Bugs
    Replies: 2
    Last Post: 21 Jul 2017, 2:25 AM
  2. How to use route when creating lazy view
    By oLaNceLoTo in forum Ext 5: Q&A
    Replies: 4
    Last Post: 24 Mar 2015, 6:44 AM
  3. possible issue with routes resetting view to first defined route
    By jwbworks in forum Sencha Touch 2.x: Q&A
    Replies: 1
    Last Post: 18 Oct 2012, 11:28 AM
  4. How can I change the hash but not trigger the route?
    By neekey in forum Sencha Touch 1.x: Q&A
    Replies: 3
    Last Post: 20 Mar 2012, 4:45 AM

Tags for this Thread

Posting Permissions

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