开发者

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);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜