【问题标题】:Using ComponentQuery to find a certain Component - extjs使用 ComponentQuery 查找某个 Component - extjs
【发布时间】:2013-07-26 14:57:24
【问题描述】:

当某个面板被渲染时,我正在使用一个控制器来初始化一个函数。如何在不使用“父>子”查找器的情况下使用 ComponentQuery 来检测确切的面板?

代码如下:

Ext.define('MC.controller.Description', {
    extend: 'Ext.app.Controller',
    init: function() {
        this.control({
            '**what goes here?**': {
                render: this.onPanelRendered
            }
        });
    },

    onPanelRendered: function() {
        console.log('PANEL WAS RENDERED WHOOO');
    }
});

【问题讨论】:

    标签: extjs controls panel init


    【解决方案1】:

    使用itemId,然后使用queryById进行查找

    【讨论】:

      猜你喜欢
      • 2013-08-10
      • 1970-01-01
      • 1970-01-01
      • 2016-04-10
      • 1970-01-01
      • 1970-01-01
      • 2013-12-07
      • 2019-03-23
      • 1970-01-01
      相关资源
      最近更新 更多