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
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
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
Thanks Petr for your reply, it's helpful.
Cheers,
Joud
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.
@grosst Thank you for the advice.