hi all,
when rendering an initial value to a virtual list, nothing gets shown.
copied the code from the docs. The first time it was shown, the second time no text is shown.
Similar issue to this gentleman: https://github.com/framework7io/framework7/issues/1014
The list is not created on page init, rather created as how the docs is shown. Video is available underneath the image below.
var items = [];
items.push({
expense_name: 'No data to show',
expense_price: ' '
});
var virtualList = app.virtualList.create({
// List Element
el: '.virtual-list',
items: items,
// List item Template7 template
itemTemplate:
'<li>' +
'<div class="item-content">' +
'<div class="item-inner">' +
'<div class="item-title">{{expense_name}}</div>' +
'<div class="item-after">{{expense_price}}</div>' +
'</div>' +
'</div>' +
'</li>',
});