-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
i am displaying some data in label that is coming from database.As this data can be large.I want to wrap the label to mult iline accordingly
i have tried following
<label id="sdf" style="word-wrap: break-word;" mulitline="true"/>
<label id="sdf" sclass="word-wrap"/>
<label id="sdf" style="word-wrap: break-word;"/>
but nothing is working.Content is displayed in one line and because of that we are unable to show the whole content.
Please suggest me the solution.
I am using zk 5.0.6
I do hope it was
multiline="true"
mulitline="true"
<label width="150px" value="If this product will be part of a bundle of products that is sold to a consumer, please fill in the following information. Please note that individual products must be created first before they can be associated with a bundle." sclass="word-wrap" multiline="true" />
Thanks for the reply i have used multiline="true" in code itself it was typing mistake while posting on thread only.
However i think problem is in single word and content with the space.word is not broken.
In you example itself if you remove space then whole sentence will be in one line(No wrapping :( )This is where i got stuck.
<label width="150px" value="Ifthisproductwillbepartofabundleofproductsthatissoldtoaconsumer,pleasefillinthefollowinginformation.Pleasenotethatindividualproductsmustbecreatedfirstbeforetheycanbeassociatedwithabundle.pleasefillinthefollowinginformation.Pleasenotethpleasefillinthefollowinginformation.Pleasenotethpleasefillinthefollowinginformation.Pleasenotethpleasefillinthefollowinginformation.Pleasenoteth" sclass="word-wrap" multiline="true" />
i have also tried sclass="word-wrap:break-word" multiline="true" but no sucess if any body can help in this please reply.
i thin if its continuesword with no space than its is not wrapping in multiline.
Oh I see... not sure if a no-blank-space sentence can be splitted then... a word from tech guys might help here.
Hmmm, i use zk ee 5.0.6 with this code and it works with multiline wrapped content. Try with a div around it.
<div style="padding: 3px;"> <label value="@{controller.selectedSystemManagerUserRight.systemManagerRight.longtext}" multiline="true" style="font-size: 10px;" /> </div>
See these pictures, where i have paste your text. picInsertingText, picMultilineLabel
best
Stephan
Asked: 2011-05-17 08:24:00 +0800
Seen: 519 times
Last updated: May 18 '11