this.items[0].tpl = Ext.create('Ext.XTemplate',
'{[this.tempValue()]}',
'<tpl for=".">',
'<tpl if="this.temp != title">',
'<h3 class="dataview-title">{title}</h3>',
'{[this.isTitle(values.title)]}',
'</tpl>',
'<div class="download-file">',
'<input type="checkbox" value="{title}/{filename}"> ',
' {filename}</div>',
'</tpl>',
'<div class="x-clear"></div>',
{
isTitle: function (title) {
this.temp = title;
},
tempValue: function () {
this.temp = '';
}
}
);
1 つのポップアップ ウィンドウを開き、Dataview テンプレート ( extjs-4.1.1 )を使用していくつかのファイル名をチェックボックスで表示しました。例を挙げて説明してください。