bereal
12-06-2007, 05:39 AM
Hello and thank you for the great job
I've got a couple of questions which seem very important for me:
1. is there the way to know what Class is the particular object is member of?
For example:
var viewport = new Ext.Viewport();
console.log(Ext.gimmeClass(viewport)) // i want "Ext.Viewport" here...
2. Most of examples show creating of Layout items during creation of Layout itself. We use different approach and are used to add them dynamically after creation of Layout.
I like the Viewport component, let it have default layout Ext.layout.ContainerLayout: (http://extjs.com/forum/../deploy/dev/docs/output/Ext.layout.ContainerLayout.html)
var viewport = new Ext.Viewport();
How its supposed to add, for example, EditorGridPanel, to the created Viewport?
Documentation of Viewport and or ContainerLayout tells me absolutely nothing about adding items. I tried viewport.add, viewport.getLayout().add, and etc - it doesnt work
I've got a couple of questions which seem very important for me:
1. is there the way to know what Class is the particular object is member of?
For example:
var viewport = new Ext.Viewport();
console.log(Ext.gimmeClass(viewport)) // i want "Ext.Viewport" here...
2. Most of examples show creating of Layout items during creation of Layout itself. We use different approach and are used to add them dynamically after creation of Layout.
I like the Viewport component, let it have default layout Ext.layout.ContainerLayout: (http://extjs.com/forum/../deploy/dev/docs/output/Ext.layout.ContainerLayout.html)
var viewport = new Ext.Viewport();
How its supposed to add, for example, EditorGridPanel, to the created Viewport?
Documentation of Viewport and or ContainerLayout tells me absolutely nothing about adding items. I tried viewport.add, viewport.getLayout().add, and etc - it doesnt work