1

我创建了一个自定义 xtype,命名MaterialSelector并在我的一个 ext 视图中使用。

我需要从initComponent我的自定义 xtype 的功能中引用父视图。this.xtypesChain当我从方法console.log时,initComponent它返回以下 xtypes 数组

[“组件”、“盒子”、“容器”、“字段集”、“材料选择器”]

当我尝试通过 xtype 访问父视图时,例如:this.findParentByType('fieldset')脚本总是返回undefined. 我在这里做错了吗?

4

0 回答 0