1

sencha touch 1のキッチンシンクのデザインに基づいたアプリケーションを開発しました。itemDisclosureのリストでは、メニューのある別のjsページに移動する必要があります。たとえば、従業員リストの場合は、特定の従業員をクリックします。給与の詳細のメニューを含む別のページを取得する必要があります、*詳細を残す*など。

    demos.List = new Ext.Panel ({
layout : 'fit',
    cls: 'demo-list',
    items: [{
        width: Ext.is.Phone ? undefined : 300,
        height: Ext.is.Phone ? undefined : 500,
        xtype: 'list',
        store: demos.ListStore, //getRange(0, 9),
        itemTpl: '<div class="contact"><strong>{firstName}</strong> {lastName}</div>',
        onItemDisclosure: function(record, btn, index) {
            Ext.Msg.alert('Tap', 'Disclose more info for ' +  record.get('firstName'));
             ---- From here I want to open a new page ----
             ---- I am following Kitchen Sink architecture -----

            }

    }]
/*}]*/

});

私はemployeeMenu.jsに移動する必要があります

誰かが私を同じように手伝ってくれる?

前もって感謝します..

4

1 に答える 1

0

Animesh では、以下のように項目に employeeMenu を追加する必要があります

items: [{
        width: Ext.is.Phone ? undefined : 300,
        height: Ext.is.Phone ? undefined : 500,
        xtype: 'list',
        store: demos.ListStore, //getRange(0, 9),
        itemTpl: '<div class="contact"><strong>{firstName}</strong> {lastName}</div>',
        onItemDisclosure: function(record, btn, index) {
            Ext.Msg.alert('Tap', 'Disclose more info for ' +  record.get('firstName'));
             ---- From here I want to open a new page ----
             ---- I am following Kitchen Sink architecture -----

            }

    },{employeeMenu}]
于 2012-12-28T07:47:37.480 に答える