这是html:
<div class="itemtemplate" data-win-control="WinJS.Binding.Template">
<h4 class="title" data-win-bind="textContent: title"></h4>
<div class="list" data-win-control="WinJS.UI.ListView" data-win-options="{ selectionMode: 'none' }"></div>
</div>
<div class="groupeditemslist" data-win-control="WinJS.UI.ListView" data-win-options="{ selectionMode: 'none' }"></div>
我如何添加data-win-options
完整的 html(没有像“ Metro: Dynamically Switching Templates with a WinJS ListView ”这样的嵌套WinJS.UI.ListView
绑定数据的 javascript templateSelector?
对于主数据中的每个项目,我添加一个WinJS.Binding.List
.