-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi at all. I try to format (with a carriage return) a data in a listcell with a code like this:
<listcell label="@load(each.data1)" style="text-align:left"/>
in the bind model data1 is a string like this: "first line
second line
third line"
But all ways i try the
is escaped, i have also tryed with "/n" but nothing.
Anyone know if there is a way to send a carriage return in a listcell value/label? Thanks at all.
Label multiline
attribute can help you.
For example:
<zk>
<zscript><![CDATA[
String multiLines = "1st line \n 2nd line \n 3rd line";
]]></zscript>
<div apply="org.zkoss.bind.BindComposer">
<label value="@load(multiLines)"/>
<label multiline="true" value="@load(multiLines)"/>
<listbox>
<listhead>
<listheader label="name"/>
</listhead>
<listitem>
<listcell>
<label multiline="true" value="@load(multiLines)"/>
</listcell>
</listitem>
</listbox>
</div>
</zk>
Asked: 2018-01-10 20:28:11 +0800
Seen: 12 times
Last updated: Jan 11 '18
zkspringmvc jar licence is GPL ?
Build web application without any zul files
Custom component that extends Textbox does not fire onChange event
java.lang.NullPointerException to update to zk 8.0.1
"Spring Session" + ZK + "Spring core" @Listen method refresh the screen
zk8 client side binding to a viewmodel command seems not to work
upload event dialog do not open in browser
Notification is not shown inside sticky block
Where can I find documentation (like ZK Developer's Reference) for ZK 8.0.2.2 ?