Results 1 to 5 of 5

Thread: Container or Panel?

  1. #1
    Sencha User
    Join Date
    Oct 2017
    Posts
    54

    Default Container or Panel?

    Hello everyone,

    What is better to use, a container or a panel? what is the difference? and is it recommended to use a panel inside a container?

    Thanks in advance,
    Joud

  2. #2
    Sencha User
    Join Date
    Sep 2014
    Location
    Central Europe
    Posts
    795
    Answers
    103

    Default

    I think that the only difference is that the Panel has title, header, footer and other settings.

    You can read more in here http://docs.sencha.com/extjs/6.5.0/c...nel.Panel.html

    So if you don't need any of this, and you want to just group things together with some layout use container.

    And yeah sure you can use panel inside the container. Example scenario would be container with vbox layout and to panels in it or something like that.

    Cheers
    Petr

  3. #3
    Sencha User
    Join Date
    Oct 2017
    Posts
    54

    Default

    Thanks Petr for your reply, it's helpful.

    Cheers,
    Joud

  4. #4
    Sencha Premium User
    Join Date
    Oct 2012
    Location
    United States
    Posts
    130
    Answers
    11

    Default

    Quote Originally Posted by petr.vecera View Post
    I think that the only difference is that the Panel has title, header, footer and other settings.

    You can read more in here http://docs.sencha.com/extjs/6.5.0/c...nel.Panel.html

    So if you don't need any of this, and you want to just group things together with some layout use container.

    And yeah sure you can use panel inside the container. Example scenario would be container with vbox layout and to panels in it or something like that.

    Cheers
    Petr

    On a side note be careful of over nesting panels can lead to layout run issues in the future. There are instances where neither would be needed, such as in a tab panel where you want to add a grid. Instead of adding a container/panel for the tab just link the grid directly as its own tab.

  5. #5
    Sencha User
    Join Date
    Oct 2017
    Posts
    54

    Default

    @grosst Thank you for the advice.

Similar Threads

  1. Panel containing Panel and Container with list
    By Tchinkatchuk in forum Sencha Touch 2.x: Q&A
    Replies: 3
    Last Post: 19 Mar 2012, 6:42 AM
  2. Panel with BorderLayout, and another Panel, in the same Container
    By js_coder in forum Ext 3.x: Help & Discussion
    Replies: 5
    Last Post: 6 Jan 2010, 3:02 PM
  3. Put two resizeable panel in one container panel
    By Bandorka in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 5 Nov 2008, 2:49 PM
  4. Container in a Panel
    By bhomass in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 9 Jul 2008, 9:19 PM

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
  •