0

ビュー内のパネル内に次のボタンがあります。

items: [
    {
        xtype: 'button',
        text: 'SEND',
        ui: 'confirm',
        docked: 'bottom',
        handler: function(){
            view.push('TouchNuts.view.Transactions',{
                title: 'New views title',
                html: 'Some content'
            });
        }
    }
]

リストをクリックすると、リストで構成されるページに移動したいと'TouchNuts.view.Transactions'思います。何か案は?

4

1 に答える 1

0

viewNavigationView への参照である必要があります。その参照を取得する 1 つの方法は、 を指定してからid、 を使用Ext.getCmpしてコンポーネントをフェッチすることです。

{
    xtype: 'navigationview',
    id: 'my-id',
    items: [...]
}

Ext.getCmp('my-id');
于 2013-02-02T23:10:14.590 に答える