-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
is it possible to have two rows' footer in a grid like you can have in the header?
For example this works for header:
<auxhead sclass="category-center">
<auxheader label="Healthy Food List" colspan="6" rowspan="1" />
</auxhead>
<auxhead sclass="category-center">
<auxheader label="Category Select" colspan="1" rowspan="1" />
<auxheader colspan="5" rowspan="1">
<radiogroup id="categorySelector">
<hlayout width="100%">
<radio label="All Food" checked="true" width="90px" />
<radio label="Vegetables" width="90px" />
<radio label="Seafood" width="90px" />
<radio label="Fruits" width="90px" />
<radio label="Poultry & Lean Meats" width="200px" />
</hlayout>
</radiogroup>
</auxheader>
</auxhead>
When I try to put two
<foot><footer span="5"/></foot>
<foot><footer span="5"/></foot>
in the zul file, I get the following error:
org.zkoss.zk.ui.UiException: Only one foot child is allowed: <Grid t_2>
Is there any other way of having two rows in the footer or two footers?
Regards.
No, but you can try "stack up" two grids,
e.g.,
<zk>
<grid width="300px" style="border-bottom: 0px;">
<columns>
<column label="Type" width="50px"/>
<column label="Content"/>
<column label="third column" />
</columns>
<rows>
<row>
<label value="File:"/>
<textbox width="100px"/>
<label value="test" />
</row>
</rows>
<foot>
<footer span="2" align="center">footer 1</footer>
</foot>
</grid>
<grid width="300px" style="border-top: 0px;">
<columns visible="false">
<column label="Type" width="50px"/>
<column label="Content"/>
<column label="third column" />
</columns>
<foot>
<footer align="center" span="2">footer 2</footer>
</foot>
</grid>
</zk>
Asked: 2013-04-10 12:10:51 +0800
Seen: 95 times
Last updated: Apr 11 '13