1

GroupBox Caption Doesnt Show Up

asked 2015-05-27 04:10:32 +0800

kleponboy gravatar image kleponboy flag of Indonesia
54 5
http://stupidprogrammers....

updated 2015-05-27 04:11:28 +0800

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

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-05-27 07:11:44 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

updated 2015-05-27 07:12:21 +0800

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.

link publish delete flag offensive edit

Comments

Thanks chill, It's work now :D

kleponboy ( 2015-05-29 06:03:56 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2015-05-27 04:10:32 +0800

Seen: 7 times

Last updated: May 27 '15

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More