-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi there, i am trying to get same effect like here http://www.zkoss.org/zkdemo/gettingstarted/dialogpopup (you click on item and app will throw popup with item details). problem is i am working with listbox. I tried something like this:
<template name="model">
<listitem popup="detail_${each.id}, position=end_before" style="cursor:pointer">
<div>
<label value="${each.kunde.name}" />
<popup id="detail_${each.kunde.id}">
<include src="/kunde_detail.zul"
orderItem="${each}" />
</popup>
</div>
but i am getting error: Unsupported child for listitem:
Can any1 help me plz? Thx in advance.
it works! :) thx, I just add 1 thing...only this part is needed:
<vlayout children="@load(vm.list)">
<template name="children" >
<popup id="detail_${each.id}">
<include src="/edit/kunde_detail.zul" kunde="${each}" />
</popup>
</template>
</vlayout>
this part is redundant:
<vlayout children="@load(vm.list)">
<template name="children">
<label value="@load(each.name)"/>
</template>
</vlayout>
Asked: 2013-06-18 07:53:17 +0800
Seen: 123 times
Last updated: Jun 19 '13