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

A way to define a template that component could use

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Normal Normal
    • 6.0.0
    • None
    • General
    • None

      https://sourceforge.net/tracker/?func=detail&aid=3355295&group_id=152762&atid=785194

      For example, the following code define a template called render, and then listbox could use it to render the content of the model (so no ListitemRenderer is required).

      <listbox model="${foo}">
      <template name="render">
      <listcell label="${each.name}"/>
      <listcell label="${each.description}"/>
      </template>
      </listbox>

      Notice the use and naming of template depends on the implementation of the component.

            Unassigned Unassigned
            asukachen asukachen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h