PDA

View Full Version : What type of objects are added to TabPanel.items ?



DanMcCoy
26 Sep 2010, 4:30 AM
Hello

In the example found at: http://dev.sencha.com/deploy/touch/examples/tabs2/
the items are added using JSON syntax.

As a result, I can't tell (just from the example code) what type of objects are actually/supposed to be added.
I've checked the API documentation for "TabPanel.items" which states "If an xtype is not explicitly specified, the defaultType for that Container is used".

How do I know what the defaultType is for a TabPanel?

Stoot98
26 Sep 2010, 10:16 AM
I think it defaults to Panel.

Container Docs

defaultType (http://dev.sencha.com/deploy/touch/docs/source/Container.html#cfg-Ext.lib.Container-defaultType) : StringThe default xtype of child Components to create in this Container when a child item is specified as a raw configurati...
The default xtype (http://dev.sencha.com/deploy/touch/docs/output/Ext.Component.html) of child Components to create in this Container when a child item is specified as a raw configuration object, rather than as an instantiated Component.
Defaults to 'panel'.

=NR=
12 Mar 2014, 9:34 PM
I think it defaults to Panel.

Container Docs

defaultType (http://dev.sencha.com/deploy/touch/docs/source/Container.html#cfg-Ext.lib.Container-defaultType) : StringThe default xtype of child Components to create in this Container when a child item is specified as a raw configurati...
The default xtype (http://dev.sencha.com/deploy/touch/docs/output/Ext.Component.html) of child Components to create in this Container when a child item is specified as a raw configuration object, rather than as an instantiated Component.
Defaults to 'panel'.

logically that should be it,
but when I inspect it trough the chrome inspector it return an id of "ext-container-##" which translated that it is a type of container.

anyway I used "tabpanel container[title=XXXXX]" and it works.

I'm using ST 2.3.1