如何获取用于容器的 ExtJS 布局

发布于 2024-09-24 07:18:49 字数 176 浏览 3 评论 0原文

有没有办法找出容器使用的布局类型。

例如。当我使用以下代码获取容器时,如何确定布局类型。

comp = Ext.getCmp('<name>');
comp.getLayout();

我只得到一个布局对象,但该对象中没有字段可以告诉我布局类型

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 only get a layout object but there is no field from the object which tells me the layout type

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

喜你已久 2024-10-01 07:18:49

我相信你应该能够使用“类型”,试试这个:

var cmp = Ext.getCmp("whatever");
var lyt = cmp.getLayout();

alert(lyt.type);

You should be able to use "type" I beleive, try this:

var cmp = Ext.getCmp("whatever");
var lyt = cmp.getLayout();

alert(lyt.type);
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文