-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi !
Using the following zul code, I get checkboxes aligned vertically.
X checkbox1
X checkbox2
X checkbox3
<a:bind model="all"/>
<grid id="mygrid">
<rows>
<a:bind _var="thissource"/>
<row >
<a:bind label="thissource.name" checked="thissource.selected"/>
<checkbox/>
</row>
</rows>
</grid>
I'd like to have the same checkboxes but on the same row:
X checkbox1 X checkbox2 X etc...
But I cannot find the trick to do this... Can you help me ?
TIA,
Ludo.
Hi,
Try the databinding with new syntax as follows.
<row each="@{thissource}"> <checkbox label="@{thissource.name}" checked="@{thissource.selected}"/> </row>
/Jumper
楼上的方法不行啊,楼主是想把checkbox放一行里显示……
貌似只能手动生成checkbox而不能直接用绑定了吧
Asked: 2009-02-10 16:46:55 +0800
Seen: 545 times
Last updated: Mar 16 '10