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

not possible to do if then else on templates

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 6.0.1
    • Fix Version/s: None
    • Component/s: ZHTML
    • Labels:

      Description

      curentlly i have to do workaround

      <div children="@load(model.dummy) @template(model.visible?'tabs':'text')" >
      	<template name="text">
      		<label value="Nothing selected" />
      	</template>
              <template name="tabs">
      		<label value="Something" />
      
      ......
              </template>
      </div>
      

      and have to have a model property dummy (one element list). it would be nice to have the same syntax without the @load(model.dummy) so the code would look like

      <div children="@template(model.visible?'tabs':'text')" >
      	<template name="text">
      		<label value="Nothing selected" />
      	</template>
              <template name="tabs">
      		<label value="Something" />
      
      ......
              </template>
      </div>
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            abalwierz abalwierz
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated: