通过xtype获取类名

问题描述 投票:0回答:1

使用 Ext.ClassManager.get('Ext.panel.Panel') 我可以访问原始类。但如果我只有 xtype 如何得到相同的结果? Ext.ClassManager.get('panel') 未定义

谢谢, 阿诺

class extjs xtype
1个回答
0
投票

我通过调试 Ext.create(...) 找到了解决方案 通过在 xtype-name 之前添加 widget. 我可以调用 Ext.ClassManager.getByAlias('widget.panel') 来获取正确的类。

阿尔诺

© www.soinside.com 2019 - 2024. All rights reserved.