Results 1 to 5 of 5

Thread: destory external panel

  1. #1
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    234
    Vote Rating
    2
      0  

    Default destory external panel

    I add to my project a panel within a panel that belong to another project.
    I works, but I need to remove OtherApp (with its stores and models).

    I create the panel in this way:

    myPanel.add(Ext.create(OtherApp.view.myPanel));

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

    Default

    So you need to get the OtherApp.view.myPanel instance that you created as a child item to myPanel and destroy it?
    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

  3. #3
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    234
    Vote Rating
    2
      0  

    Default

    Exactly.

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

    Default

    Code:
    myPanel.down('somextype').destroy();
    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

  5. #5
    Ext JS Premium Member
    Join Date
    Dec 2011
    Posts
    234
    Vote Rating
    2
      0  

    Default

    Ok thanks

Posting Permissions

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