How to get ExtJS Layout used for Container
is there a way to find out which layout type is used for a container.
For instance. When I use the following code to get a container how can I determine the layout type.
comp = Ext.getCmp('<name>');
comp.getLayout();
I 开发者_StackOverflow社区only get a layout object but there is no field from the object which tells me the layout type
You should be able to use "type" I beleive, try this:
var cmp = Ext.getCmp("whatever");
var lyt = cmp.getLayout();
alert(lyt.type);
精彩评论