thecodeparadox
thecodeparadox

Reputation: 87073

ExtJS 4 / Sencha Touch Container, Component, Element and Panel

What are the relations or differences between Container, Component, Element and Panel?

Please help.

Upvotes: 5

Views: 3835

Answers (2)

Molecular Man
Molecular Man

Reputation: 22386

If briefly...

Element is wrapper for DOM element.

Component is basic class for all widgets.

Container is subclass of Component. It can have "items" (i.e. Container can contain other components).

Panel is subclass of Container. It can have header, footer, toolbars, and other docked items.

You can find more info in Layouts & Containers and Components

Upvotes: 17

BadgerB
BadgerB

Reputation: 306

For Sencha Touch, Container and Panel are currently (as of 2.0 beta) the same except for 3 attributes that are deprecated.

http://docs.sencha.com/touch/2-0/#!/api/Ext.Panel

They are essentially interchangeable. This may change in the future to match up closer to Ext 4.0 where a Panel has footers, headers and toolbars while a container doesn't.

Upvotes: 2

Related Questions