Unplanned
Last Updated: 13 Mar 2020 12:44 by ADMIN
Zachary
Created on: 26 Aug 2015 19:03
Category: ListView
Type: Feature Request
1
Enable data-bound template attribute for controls like ListView
Currently when using ListView with MVVM I am able to specify the "data-template" attribute of a div marked with data-role="listview" to generate a ListView control with the specified template. I can do this with a variable like data-template="${model.itemTemplate}" which will use the specified template for each listview item.

However, I cannot change that template via a data bound property. I would like to have the control update the UI automatically with an observable object property. When I change the model.itemTemplate property, the UI should use respond and use the new string value to generate a new UI.
0 comments