-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi, I have an issue ,the caption in the groupBox component doesnt show up when its have template component.
<groupbox children="@load(vm.totalTonnage)">
<caption label="Total"/> <!-- Doesn't Show -->
<template name="children">
<vbox>
<hbox>
<zk if="${each[2] eq 'K1'}">
<label value="${each[1] }" />
<space />
<textbox value="${each[0]}" />
</zk>
</hbox>
<separator />
</vbox>
</template>
</groupbox>
but when remove the template component inside the group box, the caption does show up.
<groupbox>
<caption label="Total"/> <!-- Does Show -->
<label value="Some Text">
</groupbox>
any ideas why this is happen, and how to fix it ? I'am Using ZK 7.0.2
Regards,
Klepon
It's because you declare the children
attribute to high.
Try this :
<groupbox>
<caption label="Total"/> <!-- Doesn't Show -->
<vbox children="@load(vm.totalTonnage)">
<template name="children">
<hbox>
<zk if="${each[2] eq 'K1'}">
<label value="${each[1] }" />
<space />
<textbox value="${each[0]}" />
</zk>
</hbox>
<separator />
</template>
</vbox>
</groupbox>
Greetz Chill.
Asked: 2015-05-27 04:10:32 +0800
Seen: 7 times
Last updated: May 27 '15
Groupbox 3d mold with caption toolbar
images redrawing after collection change
Groupbox content not loaded into Dom when the box is closed by default
Insert New Record at the top of Grid / Listbox using Inline Editing
Groupbox - disable closable globally.
Multiple row save in form MVVM