Results 1 to 2 of 2

Thread: NestedList Leaf Add Panel with Components

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    4
    Vote Rating
    0
      0  

    Default NestedList Leaf Add Panel with Components

    Hello Everyone,

    This is my first post and I am new to Sencha! I have been going through the examples and Google, and have not found the answer to this. I cannot imagine that it is too difficult...

    This is my viewport.js file

    App.views.Viewport = Ext.extend(Ext.NestedList, {
    fullscreen: true,
    title: 'MainMenu',
    store: App.MainMenu_store,
    getDetailCard: function(item, parent) {
    var itemData = item.attributes.record.data,
    detailCard = new Ext.Panel({
    items: [App.views.mapPanel]
    });
    this.backButton.setText("Main Menu");
    return detailCard;
    }

    });
    App.views.mapPanel = new Ext.Panel({
    fullscreen: true,
    dockedItems: [maptoolbar],
    items: [mapdemo]
    });

    I have tried this and obviously it does NOT work.. I have also tried adding the dockedItems and Items from the mapPanel directly into the detailCard, but everytime I do.. the detailcard does not display..

    Thank you in advance for taking the time to help me!

    Chris

  2. #2
    Sencha User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1368
      0  

    Default

    You are trying to add another component to NestedList? You cannot do that, it creates it's own items based on the TreeStore
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    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
  •