0

私はsenchatouchが初めてです。質問があります。ボタンを追加してアイテムテンプレートに偶数を起動するにはどうすればよいですか?解決策をギルドしてください

これが私のコーディングです

     Ext.define('bluebutton.view.BlueButton.CouponList', {
        extend: 'Ext..DataView',
        xtype: 'couponlistcard',
        requires: [
            'Ext.field.Select',
            'Ext.field.Search',
            'bluebutton.view.BlueButton.MemberDetail',
             'Ext.plugin.ListPaging',
            'Ext.plugin.PullRefresh'

        ],
        config: {

            styleHtmlContent: true,
            scrollable: 'vertical',

             store : { xclass : 'bluebutton.store.BlueButton.MemberList'},
            grouped: true,
            indexBar: true,
             autoLoad: false,
           disclosure: true,
           cls:'customHeader',

            id :'memberlist',
            items: [
                {



                }

            ],
            emptyText: '<p class="no-search-results">No member record found matching that search</p>',
            itemTpl: Ext.create(
                'Ext.XTemplate',

   '<div style="float:left;width=33%;margin:2px;"><div class="demo-weather">',
                            '<tpl for=".">',
                                '<div class="day">',
                                    '<div class="date">{memberId}</div>',
                                    '<tpl for="weatherIconUrl">',
                                        '<img src="{value}">',
                                    '</tpl>',
                                    '<span class="temp">{memberId}&deg;<span class="temp_low">{memberId}&deg;</span></span>',
                                    'button here?????'
                                '</div>',
                            '</tpl>',
                        '</div></div>'





            ),



        },


    });

ところで、私はMVCモデルを使用しています。よろしくお願いします。

4

1 に答える 1

0

リストテンプレートはコンポーネントを使用するようには設計されていませんが、データビューで使用できるはずです。もう1つの方法は、ボタンのdivをテンプレートに追加し、テンプレートのメンバー関数を使用して、ボタンを作成してdivにレンダリングすることです。

于 2013-01-17T02:52:21.897 に答える