-
New Feature
-
Resolution: Done
-
Normal
-
7.0.3
-
Security Level: Jimmy
-
None
-
None
in order to create dynamic and efficient layouts, it would be nice to have ListModel support (like in grid) for arbitrary components or children binding
currently children binding needs to re-render all children when one element is added to/removed from the children collection.
ListModel support for children binding, to add remove single or multiple item would be nice.
<x:ul children="@load(vm.resultList)" xmlns:x="xhtml"> <template name="children"> <x:li>some heavy dynamic content based on each item that would take a long time to recreate</x:li> </template> </ul>
alternatively a general purpose component that takes a ListModel
<repeater htmlTag="ul" model="@load(vm.resultList)"> <template name="model"> <x:li>some heavy dynamic content based on each item that would take a long time to recreate</x:li> </template> </repeater>