相关疑难解决方法(0)

如何从视图中获取应用程序?

如何从视图中获取我的应用程序?例如,考虑我有一个应用程序,Boo并且有一个名为的视图,Boo.view.Foo.List我想进入Boo视图List.

编辑:

请参阅此代码,并查看第20行.

Ext.define('Boo.view.Foo.List', {
    extend: 'Ext.panel.Panel',
    model: 'Boo.model.FooModel',
    alias: 'widget.foolist',
    store: 'FooListStore',
    initComponent: function () {
        this.columns = [
            {
                text: "Hello world",
                dataIndex: 'Time',
                flex: 1
            },
            {
                xtype: 'actioncolumn',
                width: 50,
                items: [{
                    icon: 'cancel.png',
                    tooltip: 'Cancel',
                    handler: function (grid, rowIndex, colIndex, col, e) {
                        //Now I need to get the application here, for example with self.getApplication() or something like this.
                    }
                }]
        }];

        this.callParent(arguments);
    }
});
Run Code Online (Sandbox Code Playgroud)

extjs extjs-mvc

6
推荐指数
1
解决办法
9799
查看次数

标签 统计

extjs ×1

extjs-mvc ×1