I am trying to wrap my DataView records, but cannot achieve this. This is what I am trying:
Code:
{
xtype: 'dataview',
store: 'Contacts',
itemTpl: [
'<div class="list-holder">',
'<ul>',
'<tpl for=".">',
'<li>',
'<a href="#"><img src="{ImageURL}" alt="{FirstName} {LastName}"></a>',
'<p>{ShortBio}</p></div>',
'</li>',
'</tpl>',
'</ul>',
'</div>'
]
}
The above gets rendered for every record. I thought <tpl for...> was where the loop started. Is it possible to pass an outter wrapper for my DataView items?