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

provide ListModel support for arbitrary components/elements

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Normal
    • Resolution: Done
    • Affects Version/s: 7.0.3
    • Fix Version/s: 8.0.0
    • Component/s: Components, Databind 2
    • Security Level: Jimmy
    • Labels:
      None

      Description

      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>
      

        Activity

        Hide
        jumperchen jumperchen added a comment -

        Please refer to this tracker - ZK-2545

        Show
        jumperchen jumperchen added a comment - Please refer to this tracker - ZK-2545

          People

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

            Dates

            • Created:
              Updated:
              Resolved: