well also credit to you, it was a nice work around that was found fast.
chillworld ( 2014-04-03 16:34:53 +0800 )edit-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello;
How can we use multiline in listheader? Some suggestions that I found in internet do not work in 7.0.1..
We are using multilanguage
Ex: ${labels.historybox.last7days}
have a good day..
Oke,
Lol third or fourth time I edit this answer(drafts weren't saved :s).
You make a mistake by your testing.
Wrong :
<label multiline="true" value="Burak\nASDASD"/>
Your value is set direct and never parsed again to explain it fast and simple.
Correct :
<label multiline="true" value="${labels.historybox.last7days}"/>
and prop file :
historybox.last7days = {
This seems the same.
But it react differently.
}
Explication prop file :
see the last documentation link, format of the prop file.
This fiddle shows this example.
edit: corrected the prop file,added more doc and tested myself => working.
More docs :
Frequently Asked Questions : How to specify line break in Label
Maxlength and Multiline
The Format of Properties Files
greetz chill.
Quick&Dirty
Use a Label and set Multiline = true.
Hello;
The only suggestion that works is
<label multiline="true">
<attribute name="value">line 1
line 2</attribute>
</label>
Others don't work:(
This also does not work with multilanguage...
Have a good day...
<listheader sclass="font10px" hflex="min" ><label multiline="true" id="myLabel"/></listheader>
myLabel.setValue(Labels.getLabel("historybox.last7days").replaceAll("<br>", "\r\n"));
historybox.last7days=Burak<br>ASDASD
This may NOT! be pretty, but it works :)
Here a working example zkFiddle
Thanks for information:) You are really creative:)
But we are using MVVM pattern, and doing this to every label is impossible.. We may extend label class to to this...
Thanks again:)
well also credit to you, it was a nice work around that was found fast.
chillworld ( 2014-04-03 16:34:53 +0800 )editAsked: 2014-04-01 12:58:45 +0800
Seen: 72 times
Last updated: Apr 03 '14
can you show the code of your listheader?
chillworld ( 2014-04-01 14:27:30 +0800 )edit