Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-2484

provide ListModel support for arbitrary components/elements

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • 8.0.0
    • 7.0.3
    • Components, Databind 2
    • Security Level: Jimmy
    • 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>
      

            Unassigned Unassigned
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: